Skip to content

Commit fbce2b1

Browse files
author
Andrew Seguin
committed
refactor: switch m2 surface colors to system terms
1 parent b97dc21 commit fbce2b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

guides/material-2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ $primary-default: mat.get-theme-color($theme, primary, default);
606606
$accent-a100: mat.get-theme-color($theme, accent, A100);
607607
$warn-500-contrast: mat.get-theme-color($theme, warn, 500-contrast);
608608
$foreground-text: mat.get-theme-color($theme, foreground, text);
609-
$background-card: mat.get-theme-color($theme, background, card);
609+
$background-card: mat.get-theme-color($theme, system, surface);
610610
$type: mat.get-theme-type($theme);
611611
$custom-background: if($type == dark, #030, #dfd);
612612
```

src/material-experimental/popover-edit/_popover-edit-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77

88
@mixin color($theme) {
9-
$background-color: mat.get-theme-color($theme, background, 'card');
9+
$background-color: mat.get-theme-color($theme, system, surface);
1010

1111
// TODO: these structural styles don't belong in the `color` part of a theme.
1212
// We should figure out a better place for them.

src/material/table/_m2-table.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// Tokens that can be configured through Angular Material's color theming API.
1616
@function get-color-tokens($theme) {
1717
@return (
18-
table-background-color: inspection.get-theme-color($theme, background, 'card'),
18+
table-background-color: inspection.get-theme-color($theme, system, surface),
1919

2020
table-header-headline-color: inspection.get-theme-color($theme, system, on-surface),
2121
table-row-item-label-text-color: inspection.get-theme-color($theme, system, on-surface),

0 commit comments

Comments
 (0)