Skip to content

Commit

Permalink
Notification a11y color contrast (#13810)
Browse files Browse the repository at this point in the history
* chore(notification): prettier formatter

* chore(A11y): fix a11y color contrast

* chore(Icon): fix formatter

* fix(Icon): fix icon color

* fix(color): added new fill color to icon

* fix(color): checking for first path to add color

* chore(icon): removed unnecessary block

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
guidari and kodiakhq[bot] authored May 22, 2023
1 parent 21e182a commit 2952a39
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@

.#{$prefix}--actionable-notification--warning
.#{$prefix}--toast-notification__icon
path[opacity='0'] {
path[opacity='0'],
.#{$prefix}--actionable-notification--warning-alt
.#{$prefix}--toast-notification__icon
path:first-of-type {
fill: $black-100;
opacity: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@

.#{$prefix}--inline-notification--warning
.#{$prefix}--inline-notification__icon
path[opacity='0'] {
path[opacity='0'],
.#{$prefix}--inline-notification--warning-alt
.#{$prefix}--inline-notification__icon
path:first-of-type {
fill: $black-100;
opacity: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@

.#{$prefix}--toast-notification--warning
.#{$prefix}--toast-notification__icon
path[opacity='0'] {
path[opacity='0'],
.#{$prefix}--toast-notification--warning-alt
.#{$prefix}--toast-notification__icon
path:first-of-type {
fill: $black-100;
opacity: 1;
}
Expand Down

0 comments on commit 2952a39

Please sign in to comment.