You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(material/core): add checkmark for single-select
Add checkmark to mat-option for single-select. Fix a11y issues where
selected state is visually communicated with color alone. Communicate
selection with both color and a checkmark indicator. Affect components
that use mat-option for single-selection, which include select and
autocomplete.
Add an `appearance` Input to mat-pseudo-checkbox. "full" appearance
renders a checkbox, which is the current behavior. Render "full"
appearance by default. "minimal" apperance renders only a checkmark.
Add an opt-out to Selection and Autocomplete components for checkmark
indicators for single-selection. Add both Input and DI token to specify
if checkmark indicators are hidden for single-select. By default display
checkmark indicators for single-selection. If both DI token and Input
are specified, the Input wins.
Does not affect multiple-selection.
Summary of API and behavior changes:
- Add an `@Input appearance` to pseudo-checkbox with options for "full"
and "minimal". "full" appearance is same and current appearance,
which renders a checkmark inside a box. "minimal" appearance renders the
checkmark without a box.
- By default, mat-option renders "minimal" appearance for single-select.
- Add `hideSingleSelectionIndicator` property to
`MatOptionParentComponent`. mat-option hides single-selection
indicator when specified by its parent.
- by default, Select and Autocomplete components display checkmark on
selected option.
- Both Autocomplete and Select add `@Input
hideSingleSelectionIndicator` to specify if checkmark indicator is
displayed for single-selection.
- Add `hideSingleSelectionIndicator` property to `MatSelectConfig`,
which specifies default value for `hideSingleSelectionIndicator`.
- Add `hideSingleSelectionIndicator` property to
`MatAutocompleteDefaultOptions`, which specifies default value for
`hideSingleSelectionIndicator`.
Fixes: #25961
0 commit comments