File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/material/core/typography Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 87
87
// Components using this function should be migrated to normalize to the 2018 style config instead.
88
88
// New components should not use this function.
89
89
@function mat-private-typography-to-2014-config ($config ) {
90
+ @if $config == null {
91
+ @return null
92
+ }
90
93
@if not mat-private-typography-is-2014-config ($config ) {
91
94
@return mat-typography-config (
92
95
$display-4 : map-get ($config , headline-1 ),
111
114
// 2014 - https://material.io/archive/guidelines/style/typography.html#typography-styles
112
115
// 2018 - https://material.io/design/typography/the-type-system.html#type-scale
113
116
@function mat-private-typography-to-2018-config ($config ) {
117
+ @if $config == null {
118
+ @return null
119
+ }
114
120
@if mat-private-typography-is-2014-config ($config ) {
115
121
@return (
116
122
headline- 1: map-get ($config , display-4 ),
You can’t perform that action at this time.
0 commit comments