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

Commit

Permalink
fix(slider): use secondary custom property color for slider container (
Browse files Browse the repository at this point in the history
…#5132)

* fix sass linting errors

* Fixed feature targeting test

* Rebase upstream
  • Loading branch information
svencowart authored and asyncLiz committed Jan 17, 2020
1 parent f16f15b commit aa8e43e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/mdc-slider/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,16 @@
$feat-color: feature-targeting-functions.create-target($query, color);

.mdc-slider__track-container {
@include feature-targeting-mixins.targets($feat-color) {
@include theme-mixins.prop(background-color, rgba(theme-variables.prop-value($color), $opacity));
@include feature-targeting-mixins.targets($feat-color) {
&::after {
@include theme-mixins.prop(background-color, $color);

display: block;
width: 100%;
height: 100%;
opacity: $opacity;
content: "";
}
}
}
}
Expand Down

0 comments on commit aa8e43e

Please sign in to comment.