Skip to content

Commit

Permalink
fix(slider): prevent slider thumb from getting cropped (#8061)
Browse files Browse the repository at this point in the history
Slider thumb may sometimes get cropped by a scale transformation.
Removing backface visibility ensures that the thumb is painted correctly.
  • Loading branch information
alexshevch authored and andrewseguin committed Dec 13, 2017
1 parent a8cd033 commit 0b05a1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/slider/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ $mat-slider-focus-ring-size: 30px !default;
left: 50%;
}

.mat-slider-thumb {
@include backface-visibility(hidden);
}

.mat-slider-thumb-label {
bottom: -$mat-slider-thumb-label-size / 2;
left: -($mat-slider-thumb-label-size + $mat-slider-thumb-arrow-gap);
Expand Down

0 comments on commit 0b05a1f

Please sign in to comment.