File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 28
28
cursor : -webkit-grab ;
29
29
cursor : grab ;
30
30
}
31
+
32
+ @mixin cursor-grabbing {
33
+ cursor : -webkit-grabbing ;
34
+ cursor : grabbing ;
35
+ }
31
36
/* stylelint-enable */
Original file line number Diff line number Diff line change @@ -103,7 +103,9 @@ $mat-slide-toggle-bar-track-width: $mat-slide-toggle-bar-width - $mat-slide-togg
103
103
104
104
// Once the thumb container is being dragged around, we remove the transition duration to
105
105
// make the drag feeling fast and not delayed.
106
- & .mat-dragging {
106
+ & .mat-dragging , & :active {
107
+ @include cursor-grabbing ;
108
+
107
109
transition-duration : 0ms ;
108
110
}
109
111
}
Original file line number Diff line number Diff line change 1
1
@import ' ../core/style/variables' ;
2
+ @import ' ../core/style/vendor-prefixes' ;
2
3
3
4
4
5
// This refers to the thickness of the slider. On a horizontal slider this is the height, on a
@@ -97,7 +98,20 @@ $mat-slider-focus-ring-size: 30px !default;
97
98
}
98
99
}
99
100
101
+ %_mat-slider-cursor {
102
+ .mat-slider :not (.mat-slider-disabled ) & {
103
+ @include cursor-grab ;
104
+ }
105
+
106
+ .mat-slider :not (.mat-slider-disabled ) & :active ,
107
+ .mat-slider-sliding :not (.mat-slider-disabled ) & {
108
+ @include cursor-grabbing ;
109
+ }
110
+ }
111
+
100
112
.mat-slider-thumb {
113
+ @extend %_mat-slider-cursor ;
114
+
101
115
position : absolute ;
102
116
right : - $mat-slider-thumb-size / 2 ;
103
117
bottom : - $mat-slider-thumb-size / 2 ;
@@ -113,6 +127,8 @@ $mat-slider-focus-ring-size: 30px !default;
113
127
}
114
128
115
129
.mat-slider-thumb-label {
130
+ @extend %_mat-slider-cursor ;
131
+
116
132
display : none ;
117
133
align-items : center ;
118
134
justify-content : center ;
You can’t perform that action at this time.
0 commit comments