Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit ed7e82d

Browse files
kvizcarracopybara-github
authored andcommitted
feat(formfield): Add theme mixin
PiperOrigin-RevId: 520117829
1 parent 36a4cba commit ed7e82d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/mdc-form-field/_form-field-theme.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ $light-theme: (
4444
'label-text-weight': 400,
4545
);
4646

47+
@mixin theme($theme) {
48+
$theme: validate.theme($light-theme, $theme);
49+
50+
@include keys.declare-custom-properties(
51+
$theme,
52+
$prefix: $_custom-property-prefix
53+
);
54+
}
55+
4756
@mixin theme-styles($theme, $query: feature-targeting.all()) {
4857
$theme: validate.theme-styles($light-theme, $theme);
4958
$theme: keys.create-theme-properties($theme, $_custom-property-prefix);

0 commit comments

Comments
 (0)