Skip to content

Commit

Permalink
feat(button): Add outlines in high contrast mode (HCM) to Button
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 473124689
  • Loading branch information
kvizcarra authored and copybara-github committed Sep 9, 2022
1 parent c757bfa commit 9ec33ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions button/lib/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@use '@material/web/compat/touchtarget/touch-target';
@use '@material/web/elevation/lib/surface' as elevation-surface;
@use '@material/web/compat/theme/selector-ext';
@use '@material/web/sass/dom';

@use './button-theme';

Expand All @@ -31,6 +32,12 @@
&:hover {
@include hover;
}

@media (forced-colors: active) {
&::before {
@include dom.transparent-border();
}
}
}

.md3-link-button-wrapper {
Expand Down

0 comments on commit 9ec33ba

Please sign in to comment.