Skip to content

Commit 2aba8ab

Browse files
josephperrotttinayuangao
authored andcommitted
fix(theme): apply base theme classes at location the theme is included (#10737)
1 parent 9fff92f commit 2aba8ab

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/lib/core/_core.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
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 {
42+
.mat-app-background,
43+
&.mat-app-background {
4344
$background: map-get($theme, background);
4445
$foreground: map-get($theme, foreground);
4546

@@ -48,7 +49,9 @@
4849
}
4950

5051
// Marker that is used to determine whether the user has added a theme to their page.
51-
.mat-theme-loaded-marker {
52-
display: none;
52+
@at-root {
53+
.mat-theme-loaded-marker {
54+
display: none;
55+
}
5356
}
5457
}

0 commit comments

Comments
 (0)