Skip to content

Commit 1302e9c

Browse files
committed
fixup! Demo using the new API to implement dark theme & primary/accent/warn
1 parent 4b1e9d6 commit 1302e9c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/material-experimental/theming/_checkbox.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@if ($value == 'dark' or $value == 'light' or type-of($value) == 'color') {
1414
@return if(mdc-theme-color.contrast-tone($value) == 'dark', $dark-color, $light-color);
1515
}
16-
@return false
16+
@return false;
1717
}
1818

1919
/// Gets a map of checkbox token values that are derived from the given palette.

src/material-experimental/theming/_token-resolution.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@
7373
// If the resolver is a list, it represents the token namespace and name.
7474
$key-and-value: list.append($resolver, $value);
7575
$result: map.deep-merge($result, map.set((), $key-and-value...));
76-
} @else if $resolver-type == 'function' {
76+
}
77+
@else if $resolver-type == 'function' {
7778
// If the resolver is a function, it should take a value and return a token map.
78-
$result: map.deep-merge($result, meta.call($resolver, $value))
79-
} @else {
79+
$result: map.deep-merge($result, meta.call($resolver, $value));
80+
}
81+
@else {
8082
// Anything else is unexpected.
8183
@error 'Invalid customization resolver for `#{$customization}` on #{$component-id}';
8284
}

0 commit comments

Comments
 (0)