Skip to content

Commit 3eb016c

Browse files
crisbetommalerba
authored andcommitted
refactor(material/core): remove unnecessary styles from mat-option (#21432)
We had an override to make the option ripple semi-transparent in high contrast mode. This hasn't been necessary for a while, because we've been setting `display: none` on all ripples for high contrast users. (cherry picked from commit f12f6c3)
1 parent 934f7eb commit 3eb016c

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/material-experimental/mdc-core/option/option.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@
6161
// user content and we don't want to disable mouse events on the user content.
6262
// Pointer events can be safely disabled because the ripple trigger element is the host element.
6363
pointer-events: none;
64-
65-
// Prevents the ripple from completely covering the option in high contrast mode.
66-
@include cdk-high-contrast(active, off) {
67-
opacity: 0.5;
68-
}
6964
}
7065
}
7166

src/material/core/option/option.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@
7474
// user content and we don't want to disable mouse events on the user content.
7575
// Pointer events can be safely disabled because the ripple trigger element is the host element.
7676
pointer-events: none;
77-
78-
// Prevents the ripple from completely covering the option in high contrast mode.
79-
@include cdk-high-contrast(active, off) {
80-
opacity: 0.5;
81-
}
8277
}
8378

8479
.mat-option-pseudo-checkbox {

0 commit comments

Comments
 (0)