Skip to content

[docs][autocomplete] Add removal and navigation aria descriptions to Chip examples - #49086

Merged
silviuaavram merged 1 commit into
mui:masterfrom
silviuaavram:docs/improve-autocomplete-chips-a11y
Sep 15, 2026
Merged

silviuaavram merged 1 commit into
mui:masterfrom
silviuaavram:docs/improve-autocomplete-chips-a11y

Conversation

@silviuaavram

@silviuaavram silviuaavram commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

Starting from mui/base-ui#5628, we are applying the same improvements to Material UI's Autocomplete Chips examples.

  • input should narrate that Arrow Left is used to navigate to selected options
  • chips should narrate that Backspace and Delete should be used to remove them

@silviuaavram
silviuaavram requested review from ZeeshanTamboli and siriwatknp and a lite review from Copilot September 4, 2026 08:23
@silviuaavram silviuaavram added docs Improvements or additions to the documentation. accessibility a11y scope: autocomplete Changes related to the autocomplete. This includes ComboBox. labels Sep 4, 2026
@silviuaavram silviuaavram changed the title [docs][autocomplete] Add removal and navigation aria descriptions to … [docs][autocomplete] Add removal and navigation aria descriptions to Chip examples Sep 4, 2026
@code-infra-dashboard

code-infra-dashboard Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Deploy preview

Bundle size

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes


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

Copilot AI 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.

🟢 Approval recommended

The changes are localized to docs demos and consistently apply the intended aria-description guidance without introducing functional or type issues in the reviewed code.

Pull request overview

This PR improves accessibility in the Material UI Autocomplete “chips/tags” documentation demos by adding screen reader guidance for (1) navigating from the input to selected chips and (2) removing chips via keyboard.

Changes:

  • Adds aria-description to selected chips (via slotProps.chip or explicit <Chip aria-description=... />) to announce Backspace/Delete removal behavior.
  • Adds aria-description to the underlying input (slotProps.htmlInput) to announce Arrow Left navigation to selected items when at least one item is selected.
  • Updates several demos from defaultValue to controlled value + onChange so the narrated “N selected” count stays accurate.
File summaries
File Description
docs/data/material/components/autocomplete/Tags.tsx Adds input + chip aria-description and controlled state to keep selected-count narration accurate.
docs/data/material/components/autocomplete/Tags.js JS equivalent of the Tags demo a11y + state updates.
docs/data/material/components/autocomplete/Sizes.tsx Adds a11y descriptions to the multi-select “sizes” variants and controls value for accurate narration.
docs/data/material/components/autocomplete/Sizes.js JS equivalent of the Sizes demo a11y + state updates.
docs/data/material/components/autocomplete/LimitTags.tsx.preview Updates preview snippet to match the new controlled-value demo API usage.
docs/data/material/components/autocomplete/LimitTags.tsx Adds chip/input aria-description and controlled state to keep selected-count narration accurate.
docs/data/material/components/autocomplete/LimitTags.js JS equivalent of the LimitTags demo a11y + state updates.
docs/data/material/components/autocomplete/FixedTags.tsx Adds conditional chip removal narration (only for removable chips) plus input selected-count narration.
docs/data/material/components/autocomplete/FixedTags.js JS equivalent of the FixedTags demo a11y updates.
docs/data/material/components/autocomplete/CheckboxesTags.tsx Adds chip/input aria-description and controlled value to support accurate selected-count narration.
docs/data/material/components/autocomplete/CheckboxesTags.js JS equivalent of the CheckboxesTags demo a11y + state updates.
docs/data/material/components/autocomplete/autocomplete.md Documents the recommended aria-description additions and translation guidance.
Review details
  • Files reviewed: 12/12 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@silviuaavram
silviuaavram force-pushed the docs/improve-autocomplete-chips-a11y branch from a5f5334 to 9476763 Compare September 8, 2026 13:38
@silviuaavram
silviuaavram requested a balanced review from Copilot September 9, 2026 06:45

Copilot AI 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.

🟡 Changes recommended

The FixedTags navigation hint must account for disabled chips and only promise navigation to removable selected items.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 12/12 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment on lines +51 to +54
'aria-description':
value.length > 0
? `${value.length} selected. From the start of the input, press Left Arrow to focus the selected items`
: 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.

Actually it is not skipped, you can focus, but you can't interact with it anyhow.

Comment on lines +51 to +54
'aria-description':
value.length > 0
? `${value.length} selected. From the start of the input, press Left Arrow to focus the selected items`
: undefined,

@mnajdova mnajdova left a comment

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.

In general it looks good, let's just make sure we handled fixed/disabled tags.

Comment on lines +51 to +54
'aria-description':
value.length > 0
? `${value.length} selected. From the start of the input, press Left Arrow to focus the selected items`
: 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.

Actually it is not skipped, you can focus, but you can't interact with it anyhow.

Copilot AI 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.

🟢 Approval recommended

The accessibility hints accurately reflect current keyboard behavior and are consistently applied across the affected demos.

Review details
  • Files reviewed: 12/12 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@silviuaavram
silviuaavram force-pushed the docs/improve-autocomplete-chips-a11y branch 4 times, most recently from 7ce4d5a to b7558c4 Compare September 14, 2026 10:38
@silviuaavram
silviuaavram force-pushed the docs/improve-autocomplete-chips-a11y branch from b7558c4 to 1238fb7 Compare September 15, 2026 07:15
@silviuaavram
silviuaavram merged commit 75f7bd2 into mui:master Sep 15, 2026
16 checks passed
@silviuaavram
silviuaavram deleted the docs/improve-autocomplete-chips-a11y branch September 15, 2026 08:11
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Sep 15, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Sep 16, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Sep 16, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Sep 16, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Sep 21, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 pushed a commit to brijeshb42/material-ui that referenced this pull request Sep 21, 2026
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Sep 29, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Sep 30, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Sep 30, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Oct 1, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Oct 5, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Oct 5, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Oct 5, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Oct 5, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Oct 5, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Oct 8, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Oct 8, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
brijeshb42 added a commit to brijeshb42/material-ui that referenced this pull request Oct 13, 2026
Upstream mui#49086 updated the pre-migration `LimitTags.tsx`; the change
was lost when the demo moved to `demos/limit-tags/`. The sibling Chip
demos already carried it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility a11y docs Improvements or additions to the documentation. scope: autocomplete Changes related to the autocomplete. This includes ComboBox.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants