mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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.
This commit is contained in:
committed by
Jeremy Elbourn
parent
f6537a18ff
commit
bd7a408c63
@@ -73,7 +73,7 @@ $mat-badge-large-size: $mat-badge-default-size + 6;
|
||||
|
||||
&.mat-badge-after {
|
||||
margin-right: $size / 2;
|
||||
|
||||
|
||||
&[dir='rtl'] {
|
||||
margin-right: 0;
|
||||
margin-left: $size;
|
||||
@@ -90,20 +90,20 @@ $mat-badge-large-size: $mat-badge-default-size + 6;
|
||||
$accent: map-get($theme, accent);
|
||||
$warn: map-get($theme, warn);
|
||||
$primary: map-get($theme, primary);
|
||||
|
||||
|
||||
.mat-badge-content {
|
||||
color: mat-color($primary, default-contrast);
|
||||
background: mat-color($primary);
|
||||
}
|
||||
|
||||
&.mat-badge-accent {
|
||||
.mat-badge-accent {
|
||||
.mat-badge-content {
|
||||
background: mat-color($accent);
|
||||
color: mat-color($accent, default-contrast);
|
||||
}
|
||||
}
|
||||
|
||||
&.mat-badge-warn {
|
||||
.mat-badge-warn {
|
||||
.mat-badge-content {
|
||||
color: mat-color($warn, default-contrast);
|
||||
background: mat-color($warn);
|
||||
|
||||
Reference in New Issue
Block a user