Skip to content

Commit

Permalink
fix(material-experimental/mdc-typography): fix always using mat-level (
Browse files Browse the repository at this point in the history
…#21669)

(cherry picked from commit a9db920)
  • Loading branch information
mmalerba authored and andrewseguin committed Jan 26, 2021
1 parent 8d2856b commit de5923a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material-experimental/mdc-helpers/_mdc-helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $mat-typography-level-mappings: (

// Converts an Angular Material typography level config to an MDC one.
@function mat-typography-level-config-to-mdc($mat-config, $mat-level) {
$mdc-level: map-get($mat-typography-level-mappings, $mat-level);
$mdc-level: map-get(map-get($mat-typography-level-mappings, mat-to-mdc), $mat-level);

@return map-merge(
if($mdc-level,
Expand Down

0 comments on commit de5923a

Please sign in to comment.