Skip to content

Commit de042e7

Browse files
fix: highlight selected tab
- highlight selected tab Contributes-to: #19140 Signed-off-by: Mariya George [email protected]
1 parent 74a57e4 commit de042e7

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

packages/styles/scss/components/content-switcher/_content-switcher.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
@media (prefers-reduced-motion: reduce) {
6464
transition: none;
6565
}
66+
67+
@include high-contrast-mode('selected');
6668
}
6769

6870
&:disabled::after {
@@ -302,6 +304,8 @@
302304
svg {
303305
z-index: 1;
304306
fill: $icon-inverse;
307+
308+
@include high-contrast-mode('icon-fill-selected');
305309
}
306310

307311
.#{$prefix}--content-switcher--icon-only.#{$prefix}--content-switcher--sm

packages/styles/scss/utilities/_high-contrast-mode.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
fill: ButtonText;
1717
}
1818

19+
@if ($type == 'icon-fill-selected') {
20+
fill: HighlightText;
21+
}
22+
1923
@if ($type == 'focus') {
2024
color: Highlight;
2125
outline: 1px solid Highlight;
@@ -26,7 +30,11 @@
2630
}
2731

2832
@if ($type == 'bold-border') {
29-
border: 2px solid Highlight;
33+
border: 2px solid ButtonBorder;
34+
}
35+
36+
@if ($type == 'selected') {
37+
background-color: SelectedItem;
3038
}
3139

3240
@if ($type == 'disabled') {

0 commit comments

Comments
 (0)