Skip to content

Commit

Permalink
fix(material-experimental/mdc-button): fix incomplete icon class targ…
Browse files Browse the repository at this point in the history
…eting in styles (#21919)

(cherry picked from commit 334ae2a)
  • Loading branch information
annieyw authored and andrewseguin committed Feb 18, 2021
1 parent 8542243 commit b18b483
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/material-experimental/mdc-button/fab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@
// ```
// However, Angular Material expects a `mat-icon` instead. The following
// mixin will style the icons appropriately.
.mat-icon {
/* stylelint-disable-next-line selector-class-pattern */
.mat-icon, .material-icons {
@include mdc-fab-icon_();
}
}

.mat-mdc-extended-fab {
@include mdc-fab-extended_();

.mat-icon {
/* stylelint-disable-next-line selector-class-pattern */
.mat-icon, .material-icons {
@include mdc-fab-extended-icon-padding(
$mdc-fab-extended-icon-padding,
$mdc-fab-extended-label-padding
Expand All @@ -42,7 +44,8 @@
// For Extended FAB with text label followed by icon.
// We are checking for the a button class because white this is a FAB it
// uses the same template as button.
.mdc-button__label + .mat-icon {
/* stylelint-disable-next-line selector-class-pattern */
.mdc-button__label + .mat-icon, .mdc-button__label + .material-icons {
@include mdc-fab-extended-icon-padding(
$mdc-fab-extended-icon-padding,
$mdc-fab-extended-label-padding,
Expand Down

0 comments on commit b18b483

Please sign in to comment.