Skip to content

[combobox][docs] Add screen reader hints to the multiple-select demos - #5628

Merged
atomiks merged 2 commits into
mui:masterfrom
atomiks:claude/combobox-screen-reader-c41422
Sep 4, 2026
Merged

[combobox][docs] Add screen reader hints to the multiple-select demos#5628
atomiks merged 2 commits into
mui:masterfrom
atomiks:claude/combobox-screen-reader-c41422

Conversation

@atomiks

@atomiks atomiks commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

In multiple mode, screen reader users get no hint that selected chips exist, that Left Arrow from the input reaches them, or that Backspace/Delete removes a focused chip. The chips have no role, so nothing is announced beyond the chip text and the nested remove button.

This adds aria-description in the multiple and async-multiple demos (CSS Modules and Tailwind): "Press Backspace or Delete to remove" on each <Combobox.Chip>, and "Press Left Arrow to edit the selected items" on <Combobox.Input> while the value is non-empty. A short note under the demo says these are app strings to translate.

The library ships no user-facing text, so the hints live in the demos only. aria-description is used over aria-describedby because Safari 17+ is the support floor. String-free library improvements (a role on Combobox.Chip, aria-keyshortcuts, Enter on a focused chip) are left for a separate issue.

@atomiks atomiks added component: combobox Changes related to the combobox component. docs Improvements or additions to the documentation. accessibility a11y labels Sep 3, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 3, 2026

Copy link
Copy Markdown

commit: 5c9a398

@code-infra-dashboard

code-infra-dashboard Bot commented Sep 3, 2026

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

Total duration: 1,010.80 ms -213.35 ms(-17.4%) | Renders: 76 (+0) | Paint: 1,640.77 ms -350.77 ms(-17.6%)

Test Duration Renders
Select mount (200 instances) 122.33 ms ▼-50.99 ms(-29.4%) 3 (+0)
Menu mount (300 instances) 76.19 ms ▼-41.77 ms(-35.4%) 1 (+0)
Menu open (500 items) 67.40 ms ▼-21.99 ms(-24.6%) 11 (+0)
Tooltip mount (300 contained roots) 46.84 ms ▼-20.05 ms(-30.0%) 1 (+0)
Select open (500 options) 45.85 ms ▼-19.06 ms(-29.4%) 14 (+0)

…and 3 more (+7 within noise) — details


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Sep 3, 2026

Copy link
Copy Markdown

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 5c9a398
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a995f44022ed90008d16341
😎 Deploy Preview https://deploy-preview-5628--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks
atomiks marked this pull request as ready for review September 3, 2026 12:01
{(value: DirectoryUser[]) => (
<Combobox.Chips
className={styles.Chips}
aria-label={value.length > 0 ? 'Selected reviewers' : undefined}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Might not need to add this conditionally. It's just a container that might not have items.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

role="toolbar" is applied conditionally, so it can only have a label with a value added

@atomiks
atomiks merged commit f1831ad into mui:master Sep 4, 2026
24 checks passed
@atomiks
atomiks deleted the claude/combobox-screen-reader-c41422 branch September 4, 2026 07:42
@atomiks atomiks changed the title [combobox] Add screen reader hints to the multiple-select demos [combobox][docs] Add screen reader hints to the multiple-select demos Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility a11y component: combobox Changes related to the combobox component. docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants