fix(button): ripples not being clipped by button border radius (#11181)

Fixes the ripple container having straight edges, despite the buttons having rounded ones, which causes the ripple container to stick out past the button edge.

Fixes #11160.
This commit is contained in:
Kristiyan Kostadinov
2018-05-08 18:54:18 +02:00
committed by Jeremy Elbourn
parent 9430a2d793
commit 6e026d73f6
+3
View File
@@ -73,6 +73,9 @@
// will overlay the user content and we don't want to disable mouse events on the user content.
// Pointer events can be safely disabled because the ripple trigger element is the host element.
pointer-events: none;
// Inherit the border radius from the parent so the ripple is clipped when it reaches the edges.
border-radius: inherit;
}
// Element that overlays the button to show focus and hover effects.