Skip to content

Popover API examples: add accessibility notes to README - #402

Merged
chrisdavidmills merged 2 commits into
mdn:mainfrom
ump45nose:docs/popover-a11y-notes-35811
Oct 12, 2026
Merged

chrisdavidmills merged 2 commits into
mdn:mainfrom
ump45nose:docs/popover-a11y-notes-35811

Conversation

@ump45nose

Copy link
Copy Markdown
Contributor

Description

Adds an "Accessibility notes" section to popover-api/README.md saying that the demos are not complete accessible components: the blur-background demo is still a non-modal popover (the page behind is not inert), the nested popover menu is nested lists of links rather than an ARIA menu, and the toast demo has no live region. It points to "Popover accessibility features" on MDN.

Motivation

mdn/content#35811 reports that these demos look like a modal dialog and a menu without the accessibility work those patterns need. The demos are in this repo, so the note goes here, not in mdn/content.

Additional details

Validation boundary: I checked the demo source in this repo (no aria-*/role attributes in blur-background, nested-popovers or toast-popovers) and that the linked MDN pages and the #popover_accessibility_features anchor exist. I did not test with a screen reader, and I did not change the demos themselves. Reworking the demos (e.g. making the nested example open submenus on demand, as the issue suggests) would be a separate change.

Related issues and pull requests

Relates to mdn/content#35811


AI assistance disclosure: this change was prepared with the help of an AI coding agent (Grok Bot) and has not been reviewed line by line by the account owner.

@ump45nose
ump45nose requested review from a team as code owners October 10, 2026 09:23
@ump45nose
ump45nose requested a review from dipikabh October 10, 2026 09:23

@chrisdavidmills chrisdavidmills left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is better for now, although eventually we should make these demos more accessible. Thanks, @ump45nose.

Comment thread popover-api/README.md Outdated
@chrisdavidmills
chrisdavidmills merged commit 252de78 into mdn:main Oct 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants