File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
src/material-experimental/mdc-helpers Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -96,12 +96,11 @@ $mat-typography-2018-level-mappings: (
96
96
$mat-typography-2018-level-mappings , $mat-typography-2014-level-mappings );
97
97
$mdc-level : map-get (map-get ($mappings , mat-to-mdc ), $mat-level );
98
98
99
- @return map-merge (
99
+ $result-with-nulls : map-merge (
100
100
if ($mdc-level ,
101
101
map-get ($mdc-typography-styles , $mdc-level ),
102
102
(
103
103
text-decoration : none ,
104
- text-transform : none ,
105
104
-moz-osx-font-smoothing : grayscale ,
106
105
-webkit-font-smoothing : antialiased
107
106
)),
@@ -113,9 +112,17 @@ $mat-typography-2018-level-mappings: (
113
112
letter-spacing : mat-letter-spacing ($mat-config , $mat-level ),
114
113
font-family : mat-font-family ($mat-config , $mat-level ),
115
114
// Angular Material doesn't use text-transform, so disable it.
116
- text-transform : none ,
115
+ text-transform : null ,
117
116
),
118
117
()));
118
+
119
+ $result : ();
120
+ @each $property , $value in $result-with-nulls {
121
+ @if $value != null {
122
+ $result : map-merge ($result , ($property : $value ));
123
+ }
124
+ }
125
+ @return $result ;
119
126
}
120
127
121
128
// Converts an Angular Material typography config to an MDC one.
You can’t perform that action at this time.
0 commit comments