mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(slider): prevent slider thumb from getting cropped (#8061)
Slider thumb may sometimes get cropped by a scale transformation. Removing backface visibility ensures that the thumb is painted correctly.
This commit is contained in:
committed by
Andrew Seguin
parent
a8cd0334cc
commit
0b05a1fe27
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user