This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -273,33 +273,7 @@ $transition-timing-function: animation-variables.$standard-curve-timing-function
273
273
$feat-color : feature-targeting .create-target ($query , color );
274
274
275
275
@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 );
303
277
}
304
278
}
305
279
You can’t perform that action at this time.
0 commit comments