Skip to content

Commit 935eda0

Browse files
committed
fix(material-experimental/theming): incorrect validation for density scale
We were missing a comma in the list of allowed densities which was breaking the validation.
1 parent d16e8ac commit 935eda0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dev-app/theme-m3.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ html {
149149
}
150150

151151
// Emit density styles for each scale.
152-
@each $scale in (maximum, 0, -1, -2, -3, minimum) {
152+
@each $scale in (maximum, 0, -1, -2, -3, -4, minimum) {
153153
$scale-theme: matx.define-theme(map.set($m3-base-config, density, scale, $scale));
154154

155155
.demo-density-#{$scale} {

src/material-experimental/theming/_config-validation.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
@return (#{'$config has unexpected properties. Valid properties are: scale. Found:'} $err);
155155
}
156156
@if $config and map.has-key($config, scale) {
157-
$allowed-scales: (0, -1, -2, -3, -4 -5, minimum, maximum);
157+
$allowed-scales: (0, -1, -2, -3, -4, -5, minimum, maximum);
158158
@if mat.private-validate-allowed-values(map.get($config, scale), $allowed-scales...) {
159159
@return (
160160
#{'Expected $config.scale to be one of: #{$allowed-scales}. Got:'}

0 commit comments

Comments
 (0)