Skip to content

Commit efedc9b

Browse files
devversionjosephperrott
authored andcommitted
fix(ripple): don't hide directive host in high contrast (#12168)
1 parent dd31521 commit efedc9b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/core/ripple/_ripple.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ $mat-ripple-color-opacity: 0.1;
88
// "relative" so that the ripple divs it creates inside itself are correctly positioned.
99
.mat-ripple {
1010
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-
}
1611
}
1712

1813
.mat-ripple.mat-ripple-unbounded {
@@ -26,6 +21,11 @@ $mat-ripple-color-opacity: 0.1;
2621

2722
transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1);
2823
transform: scale(0);
24+
25+
// In high contrast mode the ripple is opaque, causing it to obstruct the content.
26+
@include cdk-high-contrast {
27+
display: none;
28+
}
2929
}
3030
}
3131

0 commit comments

Comments
 (0)