File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 2828 cursor : -webkit-grab ;
2929 cursor : grab ;
3030}
31+
32+ @mixin cursor-grabbing {
33+ cursor : -webkit-grabbing ;
34+ cursor : grabbing ;
35+ }
3136/* stylelint-enable */
Original file line number Diff line number Diff line change @@ -105,7 +105,9 @@ $mat-slide-toggle-bar-track-width: $mat-slide-toggle-bar-width - $mat-slide-togg
105105
106106 // Once the thumb container is being dragged around, we remove the transition duration to
107107 // make the drag feeling fast and not delayed.
108- & .mat-dragging {
108+ & .mat-dragging , & :active {
109+ @include cursor-grabbing ;
110+
109111 transition-duration : 0ms ;
110112 }
111113}
Original file line number Diff line number Diff line change 11@import ' ../core/style/variables' ;
2+ @import ' ../core/style/vendor-prefixes' ;
23
34
45// This refers to the thickness of the slider. On a horizontal slider this is the height, on a
@@ -97,7 +98,19 @@ $mat-slider-focus-ring-size: 30px !default;
9798 }
9899}
99100
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+ @include cursor-grabbing ;
108+ }
109+ }
110+
100111.mat-slider-thumb {
112+ @extend %_mat-slider-cursor ;
113+
101114 position : absolute ;
102115 right : - $mat-slider-thumb-size / 2 ;
103116 bottom : - $mat-slider-thumb-size / 2 ;
@@ -113,6 +126,8 @@ $mat-slider-focus-ring-size: 30px !default;
113126}
114127
115128.mat-slider-thumb-label {
129+ @extend %_mat-slider-cursor ;
130+
116131 display : none ;
117132 align-items : center ;
118133 justify-content : center ;
You can’t perform that action at this time.
0 commit comments