Skip to content

Commit

Permalink
feat(fallback): new fallback image for invalid airport codes
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 committed Jan 20, 2022
1 parent 0d4290f commit c152152
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 20,142 deletions.
17 changes: 17 additions & 0 deletions demo/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,20 @@ The auro-avatar component is hidden from screen readers by default. The placemen
```

</auro-accordion>

## Fallback Images

The auro-avatar component will use a fallback image if a `code` value results in an avatar image that fails to load.

<div class="exampleWrapper">
<auro-avatar code="INVALID"></auro-avatar>
</div>

<auro-accordion lowProfile justifyRight>
<span slot="trigger">See code</span>

```html
<auro-avatar code="INVALID"></auro-avatar>
```

</auro-accordion>
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
fetch('/demo/demo.md')
.then((response) => response.text())
.then((text) => {
const rawHtml = marked(text);
const rawHtml = marked.parse(text);
document.querySelector('main').innerHTML = rawHtml;
Prism.highlightAll();
});
Expand Down
Loading

0 comments on commit c152152

Please sign in to comment.