Skip to content

Commit 334ae2a

Browse files
authored
fix(material-experimental/mdc-button): fix incomplete icon class targeting in styles (#21919)
1 parent 4b8427e commit 334ae2a

File tree

1 file changed

+6
-3
lines changed
  • src/material-experimental/mdc-button

1 file changed

+6
-3
lines changed

src/material-experimental/mdc-button/fab.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,17 @@
2424
// ```
2525
// However, Angular Material expects a `mat-icon` instead. The following
2626
// mixin will style the icons appropriately.
27-
.mat-icon {
27+
/* stylelint-disable-next-line selector-class-pattern */
28+
.mat-icon, .material-icons {
2829
@include mdc-fab-icon_();
2930
}
3031
}
3132

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

35-
.mat-icon {
36+
/* stylelint-disable-next-line selector-class-pattern */
37+
.mat-icon, .material-icons {
3638
@include mdc-fab-extended-icon-padding(
3739
$mdc-fab-extended-icon-padding,
3840
$mdc-fab-extended-label-padding
@@ -42,7 +44,8 @@
4244
// For Extended FAB with text label followed by icon.
4345
// We are checking for the a button class because white this is a FAB it
4446
// uses the same template as button.
45-
.mdc-button__label + .mat-icon {
47+
/* stylelint-disable-next-line selector-class-pattern */
48+
.mdc-button__label + .mat-icon, .mdc-button__label + .material-icons {
4649
@include mdc-fab-extended-icon-padding(
4750
$mdc-fab-extended-icon-padding,
4851
$mdc-fab-extended-label-padding,

0 commit comments

Comments
 (0)