-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BX-832] Dismiss Alert prompts by clicking blurred background area #698
Conversation
BX-832 Dismiss Alert prompts by clicking blurred background area
Rather that defocussing input, we should activate the Cancel/Dismiss action when user clicks in background area. This click should be interpreted as cancel/dismiss nondestructive action only. |
Here's the packed extension for this build: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to do this instinctively a couple of times and got really annoyed when I realized we didn't support it.
💯
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
What changed (plus any additional context for devs)
Passing an optional handleClose prop to the Prompt component now allows the user to click the background to close prompts
Screen recordings / screenshots
https://recordit.co/NtsTVrKtYQ
What to test
Make sure clicking the bg closes alerts/prompts
Final checklist
yarn build
).