Skip to content

Commit 9146953

Browse files
committed
added loading modifer for yellow toast styles
1 parent 69bfbd9 commit 9146953

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pages/css/components/toasts.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,8 @@ Add the `Toast--spinner` modifier class on the `Toast-icon` `svg` to communicate
142142

143143
```html title="Toast loading"
144144
<div class="p-1">
145-
<div class="Toast Toast--warning">
145+
<div class="Toast Toast--loading">
146146
<span class="Toast-icon">
147-
<!-- <%= octicon "info" %> -->
148147
<svg class="Toast--spinner" viewBox="0 0 32 32" width="18" height="18" fill="#24292E">
149148
<path opacity=".2" d="M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"/>
150149
<path d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"></path>

src/toasts/toasts.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@
5454
background-color: $red-500;
5555
}
5656

57-
.Toast--warning .Toast-icon {
58-
color: $gray-900;
59-
background-color: $yellow-600;
57+
.Toast--warning, .Toast--loading {
58+
.Toast-icon {
59+
color: $gray-900;
60+
background-color: $yellow-600;
61+
}
6062
}
6163

6264
.Toast--success .Toast-icon {

0 commit comments

Comments
 (0)