Skip to content

Commit 728138f

Browse files
committed
fix(tab-bar): better icon color in dark mode
When icon color is not specified by the tab, it defaults to our dark-mode friendly variables.
1 parent e16f5a9 commit 728138f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/tab-bar/tab-bar.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ $tab-separator-background-color: rgb(var(--contrast-600));
9797
}
9898

9999
.mdc-tab__icon {
100+
color: rgb(
101+
var(--contrast-800)
102+
); // inactive tab's icon color, unless defined by tab item itself
100103
margin-left: -0.25rem;
101104
}
102105

@@ -138,6 +141,12 @@ $tab-separator-background-color: rgb(var(--contrast-600));
138141
transition: background-color 1s ease;
139142
}
140143
}
144+
145+
.mdc-tab__icon {
146+
color: var(
147+
--mdc-theme-primary
148+
); // active tab's icon color, unless defined by tab item itself
149+
}
141150
}
142151

143152
.mdc-tab__content {

0 commit comments

Comments
 (0)