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

Commit aa8e43e

Browse files
svencowartasyncLiz
authored andcommitted
fix(slider): use secondary custom property color for slider container (#5132)
* fix sass linting errors * Fixed feature targeting test * Rebase upstream
1 parent f16f15b commit aa8e43e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/mdc-slider/_mixins.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,16 @@
435435
$feat-color: feature-targeting-functions.create-target($query, color);
436436

437437
.mdc-slider__track-container {
438-
@include feature-targeting-mixins.targets($feat-color) {
439-
@include theme-mixins.prop(background-color, rgba(theme-variables.prop-value($color), $opacity));
438+
@include feature-targeting-mixins.targets($feat-color) {
439+
&::after {
440+
@include theme-mixins.prop(background-color, $color);
441+
442+
display: block;
443+
width: 100%;
444+
height: 100%;
445+
opacity: $opacity;
446+
content: "";
447+
}
440448
}
441449
}
442450
}

0 commit comments

Comments
 (0)