mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
9430a2d793
commit
6e026d73f6
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user