Skip to content

Commit 2ec9dff

Browse files
crisbetommalerba
authored andcommittedFeb 4, 2019
fix(slider): focus ring showing when ancestor has focus monitoring (#14960)
Fixes an overly-broad selector that meant that the slider's focus ring would show if any of its ancestors has focus monitoring. Fixes #14958.
1 parent 37732cb commit 2ec9dff

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎src/lib/slider/slider.scss

+3-4
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ $mat-slider-focus-ring-size: 30px !default;
9494
background-color $swift-ease-out-duration $swift-ease-out-timing-function,
9595
opacity $swift-ease-out-duration $swift-ease-out-timing-function;
9696

97-
.cdk-keyboard-focused &,
98-
.cdk-program-focused & {
97+
.mat-slider.cdk-keyboard-focused &,
98+
.mat-slider.cdk-program-focused & {
9999
transform: scale(1);
100100
opacity: 1;
101101
}
@@ -197,8 +197,7 @@ $mat-slider-focus-ring-size: 30px !default;
197197
// Slider with thumb label.
198198
.mat-slider-thumb-label-showing {
199199
.mat-slider-focus-ring {
200-
transform: scale(0);
201-
opacity: 0;
200+
display: none;
202201
}
203202

204203
.mat-slider-thumb-label {

0 commit comments

Comments
 (0)
Please sign in to comment.