Popovers are small overlays that open on demand. They let users access additional content and actions without cluttering the page.
Popovers should:
If a popover contains actions, they should:
If the popover includes a series of navigational links, each item should:
Popovers usually contain an option list or action list, but can also contain other controls or content.
To assist screen readers with sending focus to an action list, pass autofocusTarget="first-node" to the Popover. This will avoid known issues a screen reader may have with keyboard support once focus is moved off the activator.
Web browsers assign a default value of menu to the aria-haspopup role. You can use the prop ariaHaspopup to specify a value. Screen readers may fail to send focus to the Popover content when they expect the content to be adjacent to the element with aria-haspopup in the DOM tree. In this scenario, it is recommended not to provide the ariaHaspopup prop.