Skip to content

fix: button ripple radius#3388

Merged
lukewalczak merged 1 commit into
callstack:mainfrom
dakshbhardwaj:fix/button-ripple-border-radius
Sep 28, 2022
Merged

fix: button ripple radius#3388
lukewalczak merged 1 commit into
callstack:mainfrom
dakshbhardwaj:fix/button-ripple-border-radius

Conversation

@dakshbhardwaj

Copy link
Copy Markdown
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
Copy Markdown

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

@lukewalczak

Copy link
Copy Markdown
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

3 participants