Skip to content

Commit fc0746f

Browse files
committed
fix(theme): apply base theme classes at location the theme is included
1 parent 7fb2f89 commit fc0746f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/core/_core.scss

Lines changed: 4 additions & 2 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,8 @@
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+
.mat-theme-loaded-marker,
53+
&.mat-theme-loaded-marker {
5254
display: none;
5355
}
5456
}

0 commit comments

Comments
 (0)