Skip to content

Commit

Permalink
fix(button): hcm for ghost icon color contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
kinueng committed Oct 19, 2021
1 parent ac2c448 commit 932d9b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@
path:not([data-icon-path]):not([fill='none']),
.#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only .#{$prefix}--btn__icon {
fill: $icon-01;
@include high-contrast-mode {
fill: $icon-03;
}
}

.#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only[disabled]
Expand Down
4 changes: 4 additions & 0 deletions packages/styles/scss/utilities/_high-contrast-mode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
fill: ButtonText;
}

@if ($type == 'icon-fill-white') {
fill: $icon-03;
}

@if ($type == 'focus') {
color: Highlight;
outline: 1px solid Highlight;
Expand Down

0 comments on commit 932d9b0

Please sign in to comment.