Skip to content

Commit

Permalink
fix: remove ripples in high contrast mode (#6355)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
crisbeto authored and mmalerba committed Aug 9, 2017
1 parent 0d2ea10 commit fd5e5ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/core/ripple/_ripple.scss
@@ -1,4 +1,5 @@
@import '../theming/theming';
@import '../a11y/a11y';

$mat-ripple-color-opacity: 0.1;

Expand All @@ -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 {
Expand Down

0 comments on commit fd5e5ff

Please sign in to comment.