Skip to content

Commit

Permalink
fix(data-table): high contrast mode fixes (#6873)
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 Sep 22, 2020
1 parent d7ddb44 commit 31dab58
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@
transform: rotate(90deg);
transition: transform $duration--moderate-01 motion(standard, productive);
fill: $ui-05;

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

// fix expanded parent separating border length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@
fill: $ui-05;
}

// Windows HCM fix
.#{$prefix}--table-sort__icon,
.#{$prefix}--table-sort__icon-unsorted {
@media screen and (-ms-high-contrast: active) {
// `ButtonText` is a CSS2 system color to help improve colors in HCM
fill: ButtonText;
}
}

//----------------------------------------------------------------------------
// Compact, Short, Tall Sortable
//----------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@
width: rem(16px);
height: rem(16px);
fill: $icon-01;

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

.#{$prefix}--overflow-menu-options {
Expand Down
6 changes: 6 additions & 0 deletions packages/components/src/components/search/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@
transform: translateY(-50%);
pointer-events: none;
fill: $icon-02;

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

.#{$prefix}--search-close {
Expand Down

0 comments on commit 31dab58

Please sign in to comment.