Skip to content

Commit 0e1d144

Browse files
committed
changed loading toast to gray
1 parent 9146953 commit 0e1d144

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

pages/css/components/toasts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ Add the `Toast--spinner` modifier class on the `Toast-icon` `svg` to communicate
144144
<div class="p-1">
145145
<div class="Toast Toast--loading">
146146
<span class="Toast-icon">
147-
<svg class="Toast--spinner" viewBox="0 0 32 32" width="18" height="18" fill="#24292E">
148-
<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"/>
149-
<path d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"></path>
147+
<svg class="Toast--spinner" viewBox="0 0 32 32" width="18" height="18">
148+
<path fill="#6a737d" 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"/>
149+
<path fill="#ffffff" d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"></path>
150150
</svg>
151151
</span>
152152
<span class="Toast-content">Toast message goes here.</span>

src/toasts/toasts.scss

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

57-
.Toast--warning, .Toast--loading {
58-
.Toast-icon {
57+
.Toast--warning .Toast-icon {
5958
color: $gray-900;
6059
background-color: $yellow-600;
61-
}
6260
}
6361

6462
.Toast--success .Toast-icon {
6563
background-color: $green-500;
6664
}
6765

66+
.Toast--loading .Toast-icon {
67+
background-color: $gray-700;
68+
}
69+
6870
// Animations
6971

7072
.Toast--animateIn {
@@ -98,6 +100,3 @@
98100
from { transform:rotate(0deg); }
99101
to { transform:rotate(360deg); }
100102
}
101-
102-
103-

0 commit comments

Comments
 (0)