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

[Popup] focus anchor after hide? #441

Closed
carmacleod opened this issue Jan 23, 2021 · 2 comments
Closed

[Popup] focus anchor after hide? #441

carmacleod opened this issue Jan 23, 2021 · 2 comments
Assignees

Comments

@carmacleod
Copy link

I didn't see any mention in the explainer of where focus goes after the popup is hidden (i.e. in the case where focus was moved into the popup and didn't just stay on the anchor).

Maybe it's just left up to the author, but if the author doesn't manage focus on hide (which happens), then I think there's an opportunity for a nice default behavior, which is to return focus to the anchor, if there is one. It would be good if the "focus after hide" behavior was explicit in the explainer (perhaps in the Dismissing the popup section).

@melanierichards
Copy link
Contributor

Thanks @carmacleod, your suggestion seems like a reasonable behavior to me!

@melanierichards
Copy link
Contributor

Thanks again Carolyn for the feedback! Moving issues to Open UI for incubation, so the discussion will now be here: openui/open-ui#327

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

4 participants