Skip to content

Commit 6e026d7

Browse files
crisbetojelbourn
authored andcommitted
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.
1 parent 9430a2d commit 6e026d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/button/button.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
// will overlay the user content and we don't want to disable mouse events on the user content.
7474
// Pointer events can be safely disabled because the ripple trigger element is the host element.
7575
pointer-events: none;
76+
77+
// Inherit the border radius from the parent so the ripple is clipped when it reaches the edges.
78+
border-radius: inherit;
7679
}
7780

7881
// Element that overlays the button to show focus and hover effects.

0 commit comments

Comments
 (0)