Skip to content

Commit

Permalink
refactor(ripple): remove ripple when forced-colors is active
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 474876313
  • Loading branch information
material-web-copybara authored and copybara-github committed Sep 16, 2022
1 parent 10cf00b commit 32963e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ripple/lib/_ripple-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}
}

0 comments on commit 32963e2

Please sign in to comment.