Skip to content

Commit

Permalink
Update aries-site/src/pages/templates/popover.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Glissmann <[email protected]>
  • Loading branch information
britt6612 and halocline authored Oct 17, 2024
1 parent 2a17ec2 commit 6935680
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aries-site/src/pages/templates/popover.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ Add `aria-haspopup` as well as `aria-controls` on:
- The trigger in which opens the popover.
- `aria-haspopup` tells users that there is a pop-up associated with the element.
- `aria-controls` gives users more detailed information about which specific element will be affected when they interact with the element that has `aria-haspopup`.
Popover should be operable by both mouse and keyboard events.

Keyboard focus should be contained or "trapped" within the popover while it is open.
| Key | Interaction |
| ----- | ---------------------------------------------------------------------------------------------------------------- |
| **Tab** | Highlights interactive elements. Focus remains within the popover until it is closed. Once exited, focus returns to the trigger. |
Expand Down

0 comments on commit 6935680

Please sign in to comment.