Keyboard Support
Accessible popovers ensure all users can discover, open, interact with, and close popover content effectively. When using Popover, follow these best practices.
Popovers provide comprehensive keyboard navigation.
Users can open and close popovers using standard keyboard patterns.
Focus moves appropriately when popovers open and close.
onOpenAutoFocus to customize focus behaviorFocus is trapped within the popover when it's open.
Users can navigate between interactive elements within the popover using Tab and Shift+Tab, but cannot tab outside the popover until it closes.
Popovers use proper ARIA attributes to communicate structure and state.
Popovers use appropriate ARIA roles.
Popovers use role="dialog" or role="tooltip" (handled by Radix UI) to identify the floating content, and the trigger is associated with the content.
Ensure popovers are properly labeled.
Triggers should have clear labels that describe what the popover contains, especially when using icon-only triggers.