Skip to content

Commit

Permalink
Docs(web): Use danger icon for danger color in Alert and Toast
Browse files Browse the repository at this point in the history
  • Loading branch information
literat authored and crishpeen committed Mar 5, 2024
1 parent f86cfee commit 23a2528
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/scss/components/Alert/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h2 class="docs-Heading">Alert Colors</h2>

<div class="Alert Alert--danger" role="alert">
<svg width="24" height="24">
<use xlink:href="/icons/svg/sprite.svg#warning" />
<use xlink:href="/icons/svg/sprite.svg#danger" />
</svg>
<div>Data update failed due to missing internet connection. See <a href="./" class="link-underlined">FAQ</a> for more info.</div>
</div>
Expand Down Expand Up @@ -73,7 +73,7 @@ <h2 class="docs-Heading">Alert Centered</h2>

<div class="Alert Alert--danger Alert--center" role="alert">
<svg width="24" height="24">
<use xlink:href="/icons/svg/sprite.svg#warning" />
<use xlink:href="/icons/svg/sprite.svg#danger" />
</svg>
<div>Data update failed due to missing internet connection. See <a href="./" class="link-underlined">FAQ</a> for more info.</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/scss/components/Toast/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ <h2 class="docs-Heading">Colors</h2>
<div id="my-toast-color-danger" class="ToastBar ToastBar--danger ToastBar--dismissible">
<div class="ToastBar__content">
<svg width="20" height="20" aria-hidden="true">
<use xlink:href="/icons/svg/sprite.svg#warning" />
<use xlink:href="/icons/svg/sprite.svg#danger" />
</svg>
<div class="ToastBar__message">
Danger
Expand Down

0 comments on commit 23a2528

Please sign in to comment.