mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
mmalerba
parent
0d2ea1021c
commit
fd5e5ff8ab
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user