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.
This commit is contained in:
Kristiyan Kostadinov
2017-08-09 08:26:58 +02:00
committed by mmalerba
parent 0d2ea1021c
commit fd5e5ff8ab
+6
View File
@@ -1,4 +1,5 @@
@import '../theming/theming';
@import '../a11y/a11y';
$mat-ripple-color-opacity: 0.1;
@@ -7,6 +8,11 @@ $mat-ripple-color-opacity: 0.1;
// "relative" so that the ripple divs it creates inside itself are correctly positioned.
.mat-ripple {
overflow: hidden;
// In high contrast mode the ripple is opaque, causing it to obstruct the content.
@include cdk-high-contrast {
display: none;
}
}
.mat-ripple.mat-ripple-unbounded {