Skip to content

Commit 6c212b7

Browse files
authored
fix(material-experimental/slide-toggle): fix focus indictor position (#19551)
1 parent a18753e commit 6c212b7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/material-experimental/mdc-slide-toggle/slide-toggle.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
}
2929
}
3030

31+
// The thumb-underlay element has `mat-mdc-focus-indicator` which sets
32+
// a relative position. This element must have absolute positioning. This
33+
// has increased specificity than the style set in MDC to guarantee that
34+
// it will be absolutely positioned.
35+
.mdc-switch__thumb-underlay {
36+
position: absolute;
37+
}
38+
3139
// The MDC switch styles related to the hover state are intertwined with the MDC ripple styles.
3240
// We currently don't use the MDC ripple due to size concerns, therefore we need to add some
3341
// additional styles to restore the hover state.

0 commit comments

Comments
 (0)