Skip to content

Commit bf1e199

Browse files
committed
hide overflow in ripple parents
1 parent ae66b67 commit bf1e199

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/ripple/index.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.rippleParent {
2+
overflow: hidden;
3+
}
4+
15
.ripple {
26
pointer-events: none;
37
border-radius: 50%;

src/ripple/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export function addRipple(containerElement: ReactUnity.UGUI.UGUIComponent, press
4848
ripple.Style.Set('height', maxDimension);
4949
}
5050

51+
containerElement.ClassList.Add(style.rippleParent);
5152
UnityBridge.appendChild(containerElement, ripple);
5253
return ripple;
5354
}

0 commit comments

Comments
 (0)