Skip to content

Commit 824d4b3

Browse files
committed
fix(tabs): resolve non-working Sass theme parameters
1 parent c96cf90 commit 824d4b3

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

src/components/tabs/themes/shared/tab/tab.bootstrap.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ $theme: $bootstrap;
6464
:host([selected]) {
6565
[part='tab-header'] {
6666
position: relative;
67+
background: var-get($theme, 'item-active-background');
6768

6869
&::before {
6970
box-shadow:
@@ -81,8 +82,7 @@ $theme: $bootstrap;
8182
&:focus,
8283
&:focus-within
8384
{
84-
background: var-get($theme, 'item-hover-background');
85-
z-index: 1;
85+
background: var-get($theme, 'item-active-background');
8686
}
8787
}
8888
}

src/components/tabs/themes/shared/tab/tab.common.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ $theme: $material;
3434
&:hover,
3535
&:focus-within {
3636
color: var-get($theme, 'item-active-color');
37+
background: var-get($theme, 'item-active-background');
3738

3839
::slotted(igc-icon) {
3940
color: var-get($theme, 'item-active-icon-color');

src/components/tabs/themes/shared/tab/tab.fluent.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $theme: $fluent;
2323
color: var-get($theme, 'item-hover-color');
2424

2525
::slotted(igc-icon) {
26-
color: var-get($theme, 'item-hover-icon-color');
26+
color: var-get($theme, 'item-active-icon-color');
2727
}
2828
}
2929
}

src/components/tabs/themes/shared/tab/tab.indigo.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,12 @@ $theme: $indigo;
2020

2121
text-transform: uppercase;
2222
}
23+
24+
:host([selected]) {
25+
[part='tab-header'] {
26+
&:hover,
27+
&:focus-within {
28+
background: var-get($theme, 'item-hover-background');
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)