Skip to content

Commit fd5e5ff

Browse files
crisbetommalerba
authored andcommitted
fix: remove ripples in high contrast mode (#6355)
In high contrast mode the ripples are opaque, which causes them to obstruct the content. These changes hide ripple for high contrast users since it's primarily decorative.
1 parent 0d2ea10 commit fd5e5ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/core/ripple/_ripple.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import '../theming/theming';
2+
@import '../a11y/a11y';
23

34
$mat-ripple-color-opacity: 0.1;
45

@@ -7,6 +8,11 @@ $mat-ripple-color-opacity: 0.1;
78
// "relative" so that the ripple divs it creates inside itself are correctly positioned.
89
.mat-ripple {
910
overflow: hidden;
11+
12+
// In high contrast mode the ripple is opaque, causing it to obstruct the content.
13+
@include cdk-high-contrast {
14+
display: none;
15+
}
1016
}
1117

1218
.mat-ripple.mat-ripple-unbounded {

0 commit comments

Comments
 (0)