Skip to content

Commit

Permalink
feat: add media query for high contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Pajung authored and nowseemee committed Aug 2, 2021
1 parent 467cbcf commit 87d12bc
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
--background-selected-dark: var(--scl-color-grey-90);
--background-selected-hover-dark: var(--scl-color-grey-70);
--background-selected-active-dark: var(--scl-color-black);

/* high contrast */
--color-high-contrast: var(--scl-color-white);
}

.toggle-button {
Expand Down Expand Up @@ -187,3 +190,9 @@
.toggle-button--both {
border-radius: var(--radius-primary);
}

@media screen and (forced-colors: active), (-ms-high-contrast: active) {
.toggle-button {
color: var( --color-high-contrast);
}
}

0 comments on commit 87d12bc

Please sign in to comment.