Skip to content

[docs] Replace Checkbox with Icons in Combobox examples#47654

Merged
silviuaavram merged 2 commits intomui:masterfrom
silviuaavram:docs/combobox-checkbox-a11y
Jan 21, 2026
Merged

[docs] Replace Checkbox with Icons in Combobox examples#47654
silviuaavram merged 2 commits intomui:masterfrom
silviuaavram:docs/combobox-checkbox-a11y

Conversation

@silviuaavram
Copy link
Member

Fixes #42159

Replace Checkbox with checkbox icons in the docs examples for the Autocomplete and Select components' multiple selection with checkbox examples.

Copilot AI review requested due to automatic review settings January 19, 2026 13:24
@mui-bot
Copy link

mui-bot commented Jan 19, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 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

Generated by 🚫 dangerJS against 612e72f

@silviuaavram silviuaavram added the docs Improvements or additions to the documentation. label Jan 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR replaces the Material-UI Checkbox component with direct icon rendering in documentation examples for Autocomplete and Select components' multiple selection features. The change simplifies the examples by using checkbox icons directly rather than the full Checkbox component.

Changes:

  • Replaced Checkbox imports with CheckBoxOutlineBlankIcon and CheckBoxIcon imports from @mui/icons-material
  • Introduced a SelectedIcon helper component that renders the appropriate icon based on selection state
  • Applied consistent styling (marginRight: 8, padding: 9, boxSizing: 'content-box') to maintain visual parity with the original Checkbox component

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
MultipleSelectCheckmarks.tsx Replaced Checkbox with SelectedIcon component using checkbox icons for TypeScript Select example
MultipleSelectCheckmarks.js Replaced Checkbox with SelectedIcon component using checkbox icons for JavaScript Select example
CheckboxesTags.tsx Replaced Checkbox with SelectedIcon component using checkbox icons for TypeScript Autocomplete example
CheckboxesTags.js Replaced Checkbox with SelectedIcon component using checkbox icons for JavaScript Autocomplete example

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@silviuaavram silviuaavram force-pushed the docs/combobox-checkbox-a11y branch from 1529a7f to 63d13e5 Compare January 19, 2026 13:41
Copy link
Member

@mj12albert mj12albert left a comment

Choose a reason for hiding this comment

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

Would be good to also tweak the docs a bit: https://mui.com/material-ui/react-autocomplete/#checkboxes

@silviuaavram
Copy link
Member Author

sure @mj12albert let me get to that.

Copy link
Member

@mj12albert mj12albert left a comment

Choose a reason for hiding this comment

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

Looks good ~

@silviuaavram silviuaavram merged commit 92c568f into mui:master Jan 21, 2026
19 checks passed
@silviuaavram silviuaavram deleted the docs/combobox-checkbox-a11y branch January 21, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[material-ui][Select] Checkmark select is failing Axe scan, interactive controls must not be nested

4 participants