Skip to content

Commit

Permalink
fix(a11y): fixing Selectable Tile HCM accessibility (#6932)
Browse files Browse the repository at this point in the history
* fix(a11y): selectable tile HCM fix

* fix(a11y): selectable tile expandable HCM fix

Co-authored-by: Ricardo Henriquez <[email protected]>
Co-authored-by: Andrea N. Cardona <[email protected]>
  • Loading branch information
3 people authored Oct 2, 2020
1 parent 282bdd4 commit 1abe959
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/components/src/components/tile/_tile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@

&:focus {
@include focus-outline('outline');

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
outline: 3px solid transparent;
outline-offset: -3px;
}
}
}

Expand Down Expand Up @@ -113,6 +120,13 @@
transform-origin: center;
transition: $duration--fast-02 motion(standard, productive);
fill: $ui-05;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}

&:hover {
Expand Down Expand Up @@ -176,6 +190,13 @@
> .#{$prefix}--tile__checkmark
svg {
fill: $ui-05;

// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active),
screen and (prefers-contrast) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}

.#{$prefix}--tile-content {
Expand Down

0 comments on commit 1abe959

Please sign in to comment.