File tree Expand file tree Collapse file tree 3 files changed +3
-14
lines changed
material-experimental/mdc-slide-toggle Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 22
22
// the host element.
23
23
pointer-events : none ;
24
24
}
25
-
26
- // The thumb underlay needs additional specificity to override the focus indicator's relative
27
- // positioning.
28
- .mdc-switch__thumb-underlay {
29
- position : absolute ;
30
- }
31
-
32
25
// The MDC switch styles related to the hover state are intertwined with the MDC ripple styles.
33
26
// We currently don't use the MDC ripple due to size concerns, therefore we need to add some
34
27
// additional styles to restore the hover state.
Original file line number Diff line number Diff line change 67
67
// is present.
68
68
.mat-focus-indicator.mat-option.mat-active ::before ,
69
69
70
- // The focus indicator in the calendar is placed on an element inside the cell.
70
+ // For calendar cells, render the focus indicator when the parent cell is
71
+ // focused.
71
72
.mat-calendar-body-cell :focus .mat-focus-indicator ::before ,
72
73
73
74
// For all other components, render the focus indicator on focus.
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ $mat-calendar-range-end-body-cell-size:
153
153
}
154
154
155
155
.mat-calendar-body-cell-content {
156
+ position : absolute ;
156
157
top : $mat-calendar-body-cell-content-margin ;
157
158
left : $mat-calendar-body-cell-content-margin ;
158
159
z-index : 1 ;
@@ -174,12 +175,6 @@ $mat-calendar-range-end-body-cell-size:
174
175
// Choosing a value clearly larger than the height ensures we get the correct capsule shape.
175
176
border-radius : $mat-calendar-body-cell-radius ;
176
177
177
- // Apply this style with additional specificity to override the focus indicator's relative
178
- // positioning.
179
- .mat-calendar-body-cell & {
180
- position : absolute ;
181
- }
182
-
183
178
@include cdk-high-contrast (active , off) {
184
179
border : none ;
185
180
}
You can’t perform that action at this time.
0 commit comments