Skip to content

Commit f81f64e

Browse files
committed
fixup! refactor(material/theming): clean up theme file and use mdc typography everywhere
1 parent 268318a commit f81f64e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/material/core/typography/_typography.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787
// Components using this function should be migrated to normalize to the 2018 style config instead.
8888
// New components should not use this function.
8989
@function mat-private-typography-to-2014-config($config) {
90+
@if $config == null {
91+
@return null
92+
}
9093
@if not mat-private-typography-is-2014-config($config) {
9194
@return mat-typography-config(
9295
$display-4: map-get($config, headline-1),
@@ -111,6 +114,9 @@
111114
// 2014 - https://material.io/archive/guidelines/style/typography.html#typography-styles
112115
// 2018 - https://material.io/design/typography/the-type-system.html#type-scale
113116
@function mat-private-typography-to-2018-config($config) {
117+
@if $config == null {
118+
@return null
119+
}
114120
@if mat-private-typography-is-2014-config($config) {
115121
@return (
116122
headline-1: map-get($config, display-4),

0 commit comments

Comments
 (0)