Skip to content

Commit a204677

Browse files
committed
feat(slider): add feature targeting for styles
Adds support for style feature targeting to the `slider` package. Relates to material-components#4227.
1 parent 0657504 commit a204677

File tree

4 files changed

+404
-258
lines changed

4 files changed

+404
-258
lines changed

packages/mdc-slider/_keyframes.scss

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,19 @@
2020
// THE SOFTWARE.
2121
//
2222

23-
@keyframes mdc-slider-emphasize {
24-
0% {
25-
animation-timing-function: ease-out;
26-
}
23+
@mixin mdc-slider-emphasize-keyframes_ {
24+
@keyframes mdc-slider-emphasize {
25+
0% {
26+
animation-timing-function: ease-out;
27+
}
2728

28-
50% {
29-
animation-timing-function: ease-in;
30-
transform: scale(.85);
31-
}
29+
50% {
30+
animation-timing-function: ease-in;
31+
transform: scale(.85);
32+
}
3233

33-
100% {
34-
transform: scale(.571);
34+
100% {
35+
transform: scale(.571);
36+
}
3537
}
3638
}

0 commit comments

Comments
 (0)