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

[Feature]: Exposing focus scope stack #1575

Open
2 tasks
nicooprat opened this issue Jan 22, 2025 · 0 comments
Open
2 tasks

[Feature]: Exposing focus scope stack #1575

nicooprat opened this issue Jan 22, 2025 · 0 comments

Comments

@nicooprat
Copy link
Contributor

Describe the feature

We're in the process of migrating to Radix, but we're already using this package to handle focus traps: https://github.com/focus-trap/focus-trap

We need to use stacks, for instance when trying to close a modal and displaying an alert to prevent losing modifications: the focus must be trapped in the alert, then in the dialog once dismissed.

Currently we can't migrate only one or another because the focus scope API in Radix is not exposed: https://github.com/unovue/radix-vue/blob/v2/packages/core/src/FocusScope/stack.ts

Could we imagine a solution so the two packages are compatible in order to ease a migration process?

Thanks

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.
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

No branches or pull requests

1 participant