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

Focus trap #321

Merged
merged 4 commits into from
Feb 23, 2023
Merged

Conversation

snake-345
Copy link
Contributor

Hello.

As I understand focustrap action was added as a placeholder.

Now it is actually a focus trap. I've converted Mantine's use-focus-trap with a more accurate setting of aria-hidden attributes.

@BeeMargarida BeeMargarida added enhancement New feature or request composable New or changes to composables labels Feb 23, 2023
Copy link
Member

@BeeMargarida BeeMargarida left a comment

Choose a reason for hiding this comment

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

Great contribution, thank you!! 🙌

@BeeMargarida BeeMargarida merged commit a006578 into svelteuidev:next-minor Feb 23, 2023
BeeMargarida pushed a commit that referenced this pull request Feb 26, 2023
* [@svelteui/composables]: add focustrap action which is actually work

* [@svelteui/core]: fix autofocus in Input

* [@svelteui/core]: use trapFocus prop in focustrap action

* [@svelteui/core]: make createAriaHider more accurate

---------

Co-authored-by: epelmenev <epelmenev@dealersocket.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
composable New or changes to composables enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants