Skip to content

Commit 26a4651

Browse files
authored
fix(material/tabs): remove background color from tabs (#26905)
Resolves a recent regression where tabs no longer have a `background: none` which can cause them to be grey when used on a `<button>` element.
1 parent 254cc47 commit 26a4651

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/material/tabs/_tabs-common.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ $mat-tab-animation-duration: 500ms !default;
5050
-moz-osx-font-smoothing: grayscale;
5151
text-decoration: none;
5252

53+
// Tabs might be `button` elements so we have to reset the user agent styling.
54+
background: none;
55+
5356
&.mdc-tab {
5457
// MDC's tabs stretch to fit the header by default, whereas stretching on our current ones
5558
// is an opt-in behavior. Also technically we don't need to combine the two classes, but

0 commit comments

Comments
 (0)