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
AccessibilityThis issue is related to accessibility (a11y)P2The issue is important to a large percentage of users, with a workaroundarea: material/selectfeatureLabel used to distinguish feature request from other issues
This issue tracks rework of the MatSelect component to resolve multiple accessibility issues. Based on this prototype (just the a11y behavior and API, not the visuals)
Summary:
New template-based syntax for options driven by data instead of ngFor (the existing syntax will remain for backwards compatibility for at least two major versions)
Option text will always be in the DOM, but not the option templates
Reacted by Jamie McIntyre, Rafael Santana, Liz Certa, Nehal Damania, Yannick Beauchamp-H, Tom Hatta, Michael Prentice, Michael Fairchild, Sylvain Dumont, Dennis Huallanca and 9 more
Are there any known workarounds to this issue while waiting on the rework? I'm thinking of trying to style an HTML Select to look similar with a floating label, etc.
@jelbourn Do you think there would be any value in moving the core and accessibility logic of MatSelect into a new CdkSelect component, so that MatSelect only provides the Material-specific styling on top of this? Creating a component that is functionally equivalent to native select is not at all trivial so it could be a very useful resource for people who want to make custom comboboxes without using Material Design.
@benelliott It's something I'd like to do; we're still figuring out what we want the final API to look like. Once that's settled, we can figure out which parts make sense to be in the cdk.
@jelbourn If these discussions about the API need to remain internal, that's cool. Otherwise I'd be happy to contribute if you can point me to a particular thread.
AccessibilityThis issue is related to accessibility (a11y)P2The issue is important to a large percentage of users, with a workaroundarea: material/selectfeatureLabel used to distinguish feature request from other issues
Activity
jasonzhang2022 commentedon May 2, 2018
mat-paginatorusesmat-selectfor the number of items of per page. Somat-paginatorcan't be used by VoiceOver, too.cec commentedon May 3, 2018
@jelbourn I hope I'm not wrong, but
mat-selectis used bymat-autocompleteas well right?If so, will this rework would add the possibility for paginated autocomplete suggestions as discussed in #5046 ?
Thank you!
jelbourn commentedon May 3, 2018
They're separate components but do share some code; that feature looks to be orthogonal to this.
cec commentedon May 4, 2018
Hi @jelbourn , please pardon my ignorance, by orthogonal do you mean unrelated to this rework?
jelbourn commentedon May 4, 2018
Yeah, I mean this rework doesn't affect that feature one way or another.
JamieMcI commentedon May 10, 2018
Are there any known workarounds to this issue while waiting on the rework? I'm thinking of trying to style an HTML Select to look similar with a floating label, etc.
jelbourn commentedon May 10, 2018
Using a native select will certainly give better a11y.
benelliott commentedon May 15, 2018
@jelbourn Do you think there would be any value in moving the core and accessibility logic of MatSelect into a new CdkSelect component, so that MatSelect only provides the Material-specific styling on top of this? Creating a component that is functionally equivalent to native
selectis not at all trivial so it could be a very useful resource for people who want to make custom comboboxes without using Material Design.jelbourn commentedon May 15, 2018
@benelliott It's something I'd like to do; we're still figuring out what we want the final API to look like. Once that's settled, we can figure out which parts make sense to be in the cdk.
jasonzhang2022 commentedon May 31, 2018
jrood commentedon Jun 14, 2018
@jelbourn If these discussions about the API need to remain internal, that's cool. Otherwise I'd be happy to contribute if you can point me to a particular thread.
35 remaining items
fix(select): use combobox pattern for accessibility
fix(select): use combobox pattern for accessibility
fix(select): use combobox pattern for accessibility
fix(select): use combobox pattern for accessibility
fix(select): use combobox pattern for accessibility
fix(select): use combobox pattern for accessibility
fix(select): use combobox pattern for accessibility (#20082)
fix(select): use combobox pattern for accessibility (angular#20082)
angular-automatic-lock-bot commentedon Sep 25, 2020
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(select): use combobox pattern for accessibility (angular#20082)