Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/material-experimental/mdc-core/_core-theme.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use 'sass:map';
@use '../../material/core/theming/theming';
@use '../../material/core/typography/typography';
@use './option/option-theme';
Expand All @@ -23,6 +24,17 @@
@include elevation.private-theme-elevation($zValue, $config);
}
}

// Wrapper element that provides the theme background when the user's content isn't
// inside of a `mat-sidenav-container`. Note that we need to exclude the ampersand
// selector in case the mixin is included at the top level.
.mat-mdc-app-background#{if(&, ', &.mat-mdc-app-background', '')} {
$background: map.get($config, background);
$foreground: map.get($config, foreground);

background-color: theming.get-color-from-palette($background, background);
color: theming.get-color-from-palette($foreground, text);
}
}
}

Expand Down