Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/material-experimental/mdc-slide-toggle/slide-toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
}
}

// The thumb-underlay element has `mat-mdc-focus-indicator` which sets
// a relative position. This element must have absolute positioning. This
// has increased specificity than the style set in MDC to guarantee that
// it will be absolutely positioned.
.mdc-switch__thumb-underlay {
position: absolute;
}

// The MDC switch styles related to the hover state are intertwined with the MDC ripple styles.
// We currently don't use the MDC ripple due to size concerns, therefore we need to add some
// additional styles to restore the hover state.
Expand Down