Skip to content

Commit 01c8747

Browse files
committed
fix(tab-bar): allow consumers to override tab's badge background color
The `--badge-background-color` prop was hardcoded to `--contrast-600`. This created problems if consumer wanted to modify the color.
1 parent 728138f commit 01c8747

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ $tab-separator-background-color: rgb(var(--contrast-600));
7373
height: 2.5rem;
7474

7575
&:not(.mdc-tab--active) {
76-
--badge-background-color: rgb(var(--contrast-600));
77-
7876
&:after {
7977
content: '';
8078
display: block;
@@ -105,6 +103,7 @@ $tab-separator-background-color: rgb(var(--contrast-600));
105103

106104
limel-badge {
107105
margin-right: -0.25rem;
106+
box-shadow: 0 0 0 1px rgb(var(--contrast-600));
108107
}
109108
}
110109

0 commit comments

Comments
 (0)