Skip to content
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

Merged
merged 5 commits into from
Jun 27, 2023

Conversation

derHowie
Copy link
Member

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

  • I have tested my changes in a LavaMoat bundle (yarn build).
  • I have tested my changes in Chrome & Brave.
  • If your changes are visual, did you check both the light and dark themes?

@linear
Copy link

linear bot commented Jun 26, 2023

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.

Screenshot 2023-06-09 at 1.11.55 PM.png

@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-d3d6f62c8997a737687e0ddf660df4f71a908633.zip

Copy link
Member

@brunobar79 brunobar79 left a 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.

💯

@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-b538d0abc14454260ed449ecaf9df6f55b5ae212.zip

@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-c92039b8c8a8740549c859c79476e1f3b2d4d38f.zip

@derHowie derHowie merged commit 83538b7 into master Jun 27, 2023
@derHowie derHowie deleted the @chris/prompt-bg-click branch June 27, 2023 09:24
@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-83538b72d55488e1d093cb2bf83abc666197b91c.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants