Skip to content

Commit

Permalink
fixup! feat(material/theming): Add APIs to check what information the…
Browse files Browse the repository at this point in the history
…me has
  • Loading branch information
mmalerba committed Aug 11, 2023
1 parent d57c5e5 commit 2d69529
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/material/core/theming/_inspection.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
$args-count: list.length($args);
@if $args-count == 1 {
@return _get-theme-role-color($theme, $args...);
} @else if $args-count == 2 {
}
@else if $args-count == 2 {
@return _get-theme-palette-color($theme, $args...);
}
@error #{'Expected 2 or 3 arguments. Got:'} $args-count + 1;
Expand Down Expand Up @@ -198,7 +199,7 @@ $_typography-properties: (font, font-family, line-height, font-size, letter-spac
@return map.get($theme, $_internals, typography-tokens) != null;
}
@if $system == density {
@return map.get($theme, $_internals, density-scale) != null
@return map.get($theme, $_internals, density-scale) != null;
}
@error 'Valid systems are: base, color, typography, density. Got:' $system;
}
Expand Down

0 comments on commit 2d69529

Please sign in to comment.