Skip to content

Commit

Permalink
feat: Show selected and disabled Tabs in forced colors mode (#1517)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Smedinga <[email protected]>
  • Loading branch information
alimpens and VincentSmedinga authored Aug 24, 2024
1 parent 274a916 commit 339bd1e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/css/src/components/tabs/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
&:disabled {
color: var(--ams-tabs-button-disabled-color);
cursor: var(--ams-tab-button-disabled-cursor);

@media (forced-colors: active) {
color: GrayText;
}
}

&:hover:not([aria-selected="true"], [disabled]) {
Expand All @@ -48,5 +52,9 @@
&[aria-selected="true"] {
background-color: var(--ams-tabs-button-selected-background-color);
color: var(--ams-tabs-button-selected-color);

@media (forced-colors: active) {
background-color: SelectedItem;
}
}
}

0 comments on commit 339bd1e

Please sign in to comment.