File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
@use ' sass:map' ;
2
+ @use ' ./m2' ;
2
3
3
4
// Gets the theme's system values as a flat map.
4
5
@function get-system ($theme ) {
7
8
@return $system ;
8
9
}
9
10
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
+
10
16
@return ();
11
17
}
Original file line number Diff line number Diff line change 156
156
// TODO(mmalerba): Discuss with MDC about adding them, or create custom tokens.
157
157
.mdc-list-group__subheader {
158
158
$system : m2-utils .get-system ($theme );
159
- font : map .get ($system , label-large , font );
159
+ font : map .get ($system , label-large );
160
160
letter-spacing : map .get ($system , label-large-tracking );
161
161
}
162
162
}
You can’t perform that action at this time.
0 commit comments