Skip to content

Commit

Permalink
fix(material/tabs): remove background color from tabs (#26905)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
crisbeto authored and angular-robot[bot] committed Apr 14, 2023
1 parent 13408cb commit ead5efc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/material/tabs/_tabs-common.scss
Expand Up @@ -50,6 +50,9 @@ $mat-tab-animation-duration: 500ms !default;
-moz-osx-font-smoothing: grayscale;
text-decoration: none;

// Tabs might be `button` elements so we have to reset the user agent styling.
background: none;

&.mdc-tab {
// MDC's tabs stretch to fit the header by default, whereas stretching on our current ones
// is an opt-in behavior. Also technically we don't need to combine the two classes, but
Expand Down

0 comments on commit ead5efc

Please sign in to comment.