Skip to content

Commit 0486f2d

Browse files
committed
build: fix sass compilation error
Fixes the following SASS error due to a top-level ampersand selector: ``` Error in plugin 'sass' Message: src\lib\core\_core.scss Error: Base-level rules cannot contain the parent-selector-referencing character '&'. on line 43 of src/lib/core/_core.scss, in mixin `mat-core-theme` from line 39 of src/lib/core/theming/_all-theme.scss, in mixin `angular-material-theme` from line 14 of src/lib/core/theming/prebuilt/deeppurple-amber.scss >> &.mat-app-background { --^ ```
1 parent 51206ee commit 0486f2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/core/_core.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939

4040
// Wrapper element that provides the theme background when the
4141
// user's content isn't inside of a `mat-sidenav-container`.
42-
.mat-app-background,
43-
&.mat-app-background {
42+
.mat-app-background#{if(&, ', &.mat-app-background', '')} {
4443
$background: map-get($theme, background);
4544
$foreground: map-get($theme, foreground);
4645

0 commit comments

Comments
 (0)