Skip to content

Commit

Permalink
fix(slider): thumb label blending in with background in high contrast…
Browse files Browse the repository at this point in the history
… mode (#12606)

Fixes the slider's thumb label not having an outline and blending in with the background in high contrast mode.
  • Loading branch information
crisbeto authored and jelbourn committed Aug 29, 2018
1 parent 70aca02 commit a4a79ea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib/slider/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ $mat-slider-focus-ring-size: 30px !default;
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function,
border-radius $swift-ease-out-duration $swift-ease-out-timing-function,
background-color $swift-ease-out-duration $swift-ease-out-timing-function;

@include cdk-high-contrast {
outline: solid 1px;
}
}

.mat-slider-thumb-label-text {
Expand Down Expand Up @@ -339,6 +343,13 @@ $mat-slider-focus-ring-size: 30px !default;
.mat-slider-thumb-label {
transform: rotate(45deg);
}

@include cdk-high-contrast {
.mat-slider-thumb-label,
.mat-slider-thumb-label-text {
transform: none;
}
}
}
}

Expand Down

0 comments on commit a4a79ea

Please sign in to comment.