Replies: 2 comments 3 replies
-
I think it should be. Currently facing with webview problem, I cannot make the inner TextField autoFocus even using |
Beta Was this translation helpful? Give feedback.
-
Hey! Thank you for your question! Popovers should not be focus trapped, once you tab out of a Popover it will close, it allows you to implement (large) navigation menu's at the top of your page without taking up too much space initially and hiding the contents inside If you want to, you can put a
If so, that's implemented as a |
Beta Was this translation helpful? Give feedback.
-
I noticed that modal is focus trapped by default, but Popover isn't. Is there a good reason to not focus-trap Popover? I see that this random website says that popovers should be focus trapped (https://paste.twilio.design/components/popover/#accessibility) which is what made me wonder.
I also verified empirically that the popover's in google calendar are focus trapped.
Should headlessui's popover's be focus trapped by default? If not, what makes you say that? I'm not trying to be confrontational--I am just curious about accessibility and not sure what guidelines to follow.
Beta Was this translation helpful? Give feedback.
All reactions