From 32963e207ad500c4b715dac12a1663b8cb6ac4fc Mon Sep 17 00:00:00 2001 From: Material Web Team Date: Fri, 16 Sep 2022 12:31:48 -0700 Subject: [PATCH] refactor(ripple): remove ripple when forced-colors is active PiperOrigin-RevId: 474876313 --- ripple/lib/_ripple-theme.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ripple/lib/_ripple-theme.scss b/ripple/lib/_ripple-theme.scss index 7027552013..79f8dd3382 100644 --- a/ripple/lib/_ripple-theme.scss +++ b/ripple/lib/_ripple-theme.scss @@ -75,6 +75,8 @@ $unbounded: theme.create-theme-vars($unbounded, ripple); @include _container-shape(map.get($unbounded, state-layer-shape)); } + + @include _forced-colors; } @mixin _container-shape($shape) { @@ -96,3 +98,10 @@ transparent 100% ); } + +@mixin _forced-colors { + // TODO(b/230630968): create a forced-colors-mode mixin + @media screen and (forced-colors: active) { + display: none; + } +}