Is wrapping Popover
content in a Dialog
mandatory for accessibility or stability?
#7395
Replies: 2 comments
-
yah yah i too got this doubt while im using react-aria-components |
Beta Was this translation helpful? Give feedback.
-
From the page you linked:
Our So the answer is, it depends on what you're putting inside the Popover, and it would be an improvement to document what is required of the child of the Popover. Things I would check to make sure it's working for your case are that focus cannot leave the Or, just use |
Beta Was this translation helpful? Give feedback.
-
Hi @snowystinger @devongovett,
I was going through the React Aria Popover documentation and noticed there’s no explicit mention of whether popover content should be wrapped in a Dialog.
In my current project (CodeSandbox link), I’m rendering content inside the Popover but not wrapping it in a Dialog. Everything seems to work fine.
However, I’d like to confirm:
Thank you for your guidance!
Beta Was this translation helpful? Give feedback.
All reactions