Skip to content

Conversation

@dakshbhardwaj
Copy link
Contributor

Summary

Fix: #3387

In the case when the borderRadius was 0 the condition was treating it as a falsy value.
Replaced it with a check of Nullish coalescing operator so that it check only for null and undefined values

Test plan

Checked manually by applying a style with borderRadius : 0 in the button component

@callstack-bot
Copy link

Hey @dakshbhardwaj, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@lukewalczak
Copy link
Member

Thanks @dakshbhardwaj for fixing the bug! 👏🏽

@lukewalczak lukewalczak merged commit 5f08d42 into callstack:main Sep 28, 2022
lukewalczak pushed a commit that referenced this pull request Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ripple does not respect Border Radius on buttons in 5.0.0-rc.6

3 participants