Skip to content

Commit 96d7d87

Browse files
committedFeb 14, 2025·
fix(material/slide-toggle): rendering issue in Safari 18.3 (#30490)
Fixes a rendering issue that was causing the icon inside the slide toggle to flicker or not display at all. Fixes #30487. (cherry picked from commit 657885e)
1 parent c2b363e commit 96d7d87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/material/slide-toggle/slide-toggle.scss

+3
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,9 @@ $_interactive-disabled-selector: '.mat-mdc-slide-toggle-disabled-interactive.mdc
457457
width: 100%;
458458
z-index: 1;
459459

460+
// Works around a rendering issue in Safari 18.3 (see #30487).
461+
transform: translateZ(0);
462+
460463
@include token-utils.use-tokens($_mdc-slots...) {
461464
.mdc-switch--disabled.mdc-switch--unselected & {
462465
@include token-utils.create-token-slot(opacity, disabled-unselected-icon-opacity);

0 commit comments

Comments
 (0)
Please sign in to comment.