File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ <h1>Slider with Min and Max</h1>
9
9
< input [(ngModel)] ="max ">
10
10
11
11
< h1 > Disabled Slider</ h1 >
12
- < md-slider disabled [(ngModel)] ="disabledValue "> </ md-slider >
12
+ < md-slider disabled [(ngModel)] ="disabledValue " [tickInterval] =" 1 " > </ md-slider >
13
13
< input [(ngModel)] ="disabledValue ">
14
14
15
15
< h1 > Slider with set value</ h1 >
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ md-slider {
72
72
transition : opacity $swift-ease-out-duration $swift-ease-out-timing-function ;
73
73
}
74
74
75
+ // TODO(mmalerba): Simplify css to avoid unnecessary selectors.
76
+ .md-slider-disabled .md-slider-ticks {
77
+ opacity : 0 ;
78
+ }
79
+
75
80
.md-slider-thumb-container {
76
81
position : absolute ;
77
82
z-index : 1 ;
@@ -127,8 +132,9 @@ md-slider {
127
132
}
128
133
129
134
130
- // Slider with ticks.
135
+ // Slider with ticks when not disabled .
131
136
.md-slider-has-ticks {
137
+
132
138
.md-slider-wrapper ::after {
133
139
content : ' ' ;
134
140
position : absolute ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export class MdSliderChange {
94
94
'[class.md-slider-thumb-label-showing]' : 'thumbLabel' ,
95
95
'[class.md-slider-vertical]' : 'vertical' ,
96
96
'[class.md-slider-min-value]' : '_isMinValue' ,
97
- '[class.md-slider-hide-last-tick]' : '_isMinValue && _thumbGap && invertAxis' ,
97
+ '[class.md-slider-hide-last-tick]' : '_isMinValue && _thumbGap && invertAxis || disabled ' ,
98
98
} ,
99
99
templateUrl : 'slider.html' ,
100
100
styleUrls : [ 'slider.css' ] ,
You can’t perform that action at this time.
0 commit comments