Skip to content

Commit 95e1764

Browse files
authored
chore(popovers): Add aria-haspopup documentation (#4666)
1 parent 37ad76c commit 95e1764

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/components/popovers/docs.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Panel Popovers can be shown on mouse hover but for keyboard or screen reader use
5050
- Apply the `aria-labelledby` attribute to the `dialog` element and set the value to be the ID of the main Heading element in the Popover (if it provides a good and meaningful title to the `dialog`)
5151
- If no Heading element is present, use the `aria-label` attribute and set the value to be a meaningful title of the `dialog`
5252
- The `dialog` should be described where possible. This can be achieved by applying the `aria-describedby` attribute to the `dialog` element and set the value to be the id of the Popover body
53+
- The triggering element **must** have `aria-haspopup="true"` when the popover is opened and `aria-haspopup="false"` when the popover is closed
5354

5455
## Base
5556

0 commit comments

Comments
 (0)