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

Commit 49c56a2

Browse files
patrickrodeecopybara-github
authored andcommitted
chore: cleanup obsolete custom property workaround
PiperOrigin-RevId: 479372306
1 parent 8cb18fb commit 49c56a2

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

packages/mdc-elevation/_elevation-theme.scss

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -273,33 +273,7 @@ $transition-timing-function: animation-variables.$standard-curve-timing-function
273273
$feat-color: feature-targeting.create-target($query, color);
274274

275275
@include feature-targeting.targets($feat-color) {
276-
@if custom-properties.is-custom-prop($box-shadow) {
277-
// TODO(b/185188458): Use theme.property() once resolved.
278-
$fallback: custom-properties.get-fallback($box-shadow);
279-
280-
// var(--<box-shadow-prop>, var(--m-elevation-box-shadow-for-gss))
281-
$gss-custom-prop: custom-properties.create(
282-
custom-properties.get-varname($box-shadow),
283-
custom-properties.create(elevation-box-shadow-for-gss)
284-
);
285-
286-
$value: custom-properties.create-var($gss-custom-prop);
287-
@if $value == null {
288-
// Custom properties are disabled, since $gss-custom-prop
289-
// does not have a fallback. Avoid emitting two non-custom
290-
// prop declarations by setting $fallback to null.
291-
$value: $fallback;
292-
$fallback: null;
293-
}
294-
295-
@include custom-properties.declaration(
296-
custom-properties.create(elevation-box-shadow-for-gss, $fallback)
297-
);
298-
@include css.declaration(box-shadow, $value, $fallback-value: $fallback);
299-
} @else {
300-
/* @alternate */
301-
box-shadow: $box-shadow;
302-
}
276+
@include theme.property(box-shadow, $box-shadow);
303277
}
304278
}
305279

0 commit comments

Comments
 (0)