Skip to content

Commit

Permalink
style(NavigationTab, Tab): add active styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiccarrington authored and shnaaz committed Sep 17, 2024
1 parent 04e3258 commit f8fe4e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/NavigationTab/NavigationTab.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
&[data-active='true'] {
background-color: var(--mds-color-theme-button-secondary-pressed);

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

> .md-navigation-tab-icon > * {
color: var(--mds-color-theme-text-primary-normal);
}
Expand Down
5 changes: 5 additions & 0 deletions src/components/Tab/Tab.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
&[data-active='true'] {
background-color: var(--mds-color-theme-button-secondary-active-normal);

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

.md-text-wrapper,
.md-icon-wrapper {
color: var(--mds-color-theme-text-secondary-normal);
Expand Down

0 comments on commit f8fe4e3

Please sign in to comment.