Skip to content

Add prop to toggle backdrop#10

Open
shawngustaw wants to merge 1 commit into
woofers:mainfrom
shawngustaw:main
Open

Add prop to toggle backdrop#10
shawngustaw wants to merge 1 commit into
woofers:mainfrom
shawngustaw:main

Conversation

@shawngustaw

Copy link
Copy Markdown

This will allow you to interact with anything underneath the modal.

@woofers
woofers force-pushed the main branch 11 times, most recently from c99009f to fc6b857 Compare July 7, 2024 07:19
Comment thread src/sheet.tsx
{...bindEvents({ closeOnTap: true })}
></div>
)}
<TrapFocus>

@woofers woofers Jul 11, 2024

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If showBackDrop is enabled, the TrapFocus component should not be applied to allow keyboard nav behind the dialog

@woofers
woofers self-requested a review July 11, 2024 03:05

@woofers woofers left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @shawngustaw. I think the idea behind the prop makes sense but I think a few more changes will be required to preserve accessibility and ensure the content behind the modal is actually intractable.

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.

2 participants