Skip to content

Commit ebe794d

Browse files
crisbetotinayuangao
authored andcommitted
fix(badge): remove top-level ampersand selectors from theme mixin (#9991)
Fixes the badge theme not compiling in some cases, because it contains a couple of top-level ampersand selectors. Fixes #9990.
1 parent 23c002a commit ebe794d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/badge/_badge-theme.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ $mat-badge-large-size: $mat-badge-default-size + 6;
7373

7474
&.mat-badge-after {
7575
margin-right: $size / 2;
76-
76+
7777
&[dir='rtl'] {
7878
margin-right: 0;
7979
margin-left: $size;
@@ -90,20 +90,20 @@ $mat-badge-large-size: $mat-badge-default-size + 6;
9090
$accent: map-get($theme, accent);
9191
$warn: map-get($theme, warn);
9292
$primary: map-get($theme, primary);
93-
93+
9494
.mat-badge-content {
9595
color: mat-color($primary, default-contrast);
9696
background: mat-color($primary);
9797
}
9898

99-
&.mat-badge-accent {
99+
.mat-badge-accent {
100100
.mat-badge-content {
101101
background: mat-color($accent);
102102
color: mat-color($accent, default-contrast);
103103
}
104104
}
105105

106-
&.mat-badge-warn {
106+
.mat-badge-warn {
107107
.mat-badge-content {
108108
color: mat-color($warn, default-contrast);
109109
background: mat-color($warn);

0 commit comments

Comments
 (0)