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

Update to actively supported focus-trap library #777

Open
brentswisher opened this issue Jul 18, 2024 · 0 comments
Open

Update to actively supported focus-trap library #777

brentswisher opened this issue Jul 18, 2024 · 0 comments

Comments

@brentswisher
Copy link
Contributor

The problem
We are using @ithaka/focus-trap which is an out of date fork of a no longer maintained package to provide focus trapping for accessibility purposes. This package calls document directly in it's initialization which conflicts with the Gatsby SSR of pharos-site, requiring a clunky workaround on all pages for components which use it.

The solution
Update to a maintained library or write our own focus-trap inside of Pharos which is compatible with Gatsby SSR.

Additional information

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

No branches or pull requests

1 participant