Skip to content

Commit

Permalink
fix(HCM): fix HCM issues in a few components (#7991)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tw15egan and kodiakhq[bot] committed Mar 8, 2021
1 parent 460bf18 commit 806f4d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
z-index: 3;
border-color: $focus;
box-shadow: inset 0 0 0 2px $focus, inset 0 0 0 3px $ui-01;

// Firefox HCM Fix
@media screen and (prefers-contrast) {
border-style: dotted;
}
}

&:hover {
Expand Down
11 changes: 6 additions & 5 deletions packages/components/src/components/date-picker/_flatpickr.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,18 @@
height: rem(40px);
width: rem(40px);
padding: 0;
fill: $text-01;
fill: $icon-01;
transition: background-color $duration--fast-01 motion(standard, productive);

&:hover {
background-color: $hover-ui;
}
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
fill: $text-01;
// Windows, Firefox HCM Fix
@media screen and (-ms-high-contrast: active), (prefers-contrast) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}

.flatpickr-next-month.disabled,
Expand Down

0 comments on commit 806f4d2

Please sign in to comment.