Skip to content

Commit 54ad6fc

Browse files
committed
refactor: fixes found from internal tests
1 parent d354864 commit 54ad6fc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/material/core/tokens/_m2-utils.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use 'sass:map';
2+
@use './m2';
23

34
// Gets the theme's system values as a flat map.
45
@function get-system($theme) {
@@ -7,5 +8,10 @@
78
@return $system;
89
}
910

11+
// If the $theme is a typography-config, convert it to a system map.
12+
@if map.has-key($theme, body-1) {
13+
@return m2.md-sys-typescale-values($theme);
14+
}
15+
1016
@return ();
1117
}

src/material/list/_list-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
// TODO(mmalerba): Discuss with MDC about adding them, or create custom tokens.
157157
.mdc-list-group__subheader {
158158
$system: m2-utils.get-system($theme);
159-
font: map.get($system, label-large, font);
159+
font: map.get($system, label-large);
160160
letter-spacing: map.get($system, label-large-tracking);
161161
}
162162
}

0 commit comments

Comments
 (0)