Skip to content

Commit

Permalink
updated the color of toast warning icon (#1689)
Browse files Browse the repository at this point in the history
* updated the color of toast warning icon (#1662)

* removed the `color` defination from `.Toast-icon`

* Create proud-mice-decide.md

Co-authored-by: Katie Langerman <langermank@github.com>
  • Loading branch information
adptheoctocat and langermank committed Oct 20, 2021
1 parent 88dfbb5 commit 257f68f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changeset/proud-mice-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@primer/css": patch
---

Update all Toast variant icons to use `var(--color-fg-on-emphasis)`

The only visible change is in the `warning` variant, previously using `var(--color-fg-default)`
4 changes: 0 additions & 4 deletions src/toasts/toasts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
box-shadow: inset 0 0 0 1px var(--color-border-default), var(--color-shadow-large);

.Toast-icon {
color: var(--color-fg-on-emphasis);
background-color: var(--color-neutral-emphasis);
}
}
Expand All @@ -68,7 +67,6 @@
box-shadow: inset 0 0 0 1px var(--color-border-default), var(--color-shadow-large);

.Toast-icon {
color: var(--color-fg-on-emphasis);
background-color: var(--color-danger-emphasis);
}
}
Expand All @@ -78,7 +76,6 @@
box-shadow: inset 0 0 0 1px var(--color-border-default), var(--color-shadow-large);

.Toast-icon {
color: var(--color-fg-default);
background-color: var(--color-attention-emphasis);
}
}
Expand All @@ -88,7 +85,6 @@
box-shadow: inset 0 0 0 1px var(--color-border-default), var(--color-shadow-large);

.Toast-icon {
color: var(--color-fg-on-emphasis);
background-color: var(--color-success-emphasis);
}
}
Expand Down

0 comments on commit 257f68f

Please sign in to comment.