Skip to content

MatSelect accessibility rework #11083

Closed

Description

@jelbourn

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
  • Interaction changes from listbox to combobox

This should capture issues reported in #5220, #10292, #6382, #3587, #1670

Activity

  1. added
    feature
    P2
    Accessibility
    on Apr 30, 2018
  2. jasonzhang2022 commented on May 2, 2018

    @jasonzhang2022

    mat-paginator uses mat-select for the number of items of per page. So mat-paginator can't be used by VoiceOver, too.

  3. cec commented on May 3, 2018

    @cec

    @jelbourn I hope I'm not wrong, but mat-select is used by mat-autocomplete as well right?

    If so, will this rework would add the possibility for paginated autocomplete suggestions as discussed in #5046 ?

    Thank you!

  4. jelbourn commented on May 3, 2018

    @jelbourn
    ContributorAuthor

    They're separate components but do share some code; that feature looks to be orthogonal to this.

  5. cec commented on May 4, 2018

    @cec

    Hi @jelbourn , please pardon my ignorance, by orthogonal do you mean unrelated to this rework?

  6. jelbourn commented on May 4, 2018

    @jelbourn
    ContributorAuthor

    Yeah, I mean this rework doesn't affect that feature one way or another.

  7. JamieMcI commented on May 10, 2018

    @JamieMcI

    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.

  8. jelbourn commented on May 10, 2018

    @jelbourn
    ContributorAuthor

    Using a native select will certainly give better a11y.

  9. benelliott commented on May 15, 2018

    @benelliott
    Contributor

    @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.

  10. jelbourn commented on May 15, 2018

    @jelbourn
    ContributorAuthor

    @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.

  11. jasonzhang2022 commented on May 31, 2018

    @jasonzhang2022
  12. jrood commented on Jun 14, 2018

    @jrood
    Contributor

    @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.

  13. 35 remaining items

  14. added a commit that references this issue on Jul 26, 2020
    8669172
  15. added 3 commits that reference this issue on Aug 4, 2020
    69dc621
    7f3cd79
    6cc97f6
  16. added 2 commits that reference this issue on Aug 20, 2020
    195f15e
    d9214df
  17. added a commit that references this issue on Aug 25, 2020
    6fbf142
  18. added a commit that references this issue on Aug 31, 2020
    83d1f90
  19. angular-automatic-lock-bot commented on Sep 25, 2020

    @angular-automatic-lock-bot

    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.

  20. locked and limited conversation to collaborators on Sep 25, 2020
  21. added a commit that references this issue on Jan 14, 2021
    979146d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AccessibilityP2area: material/selectfeature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions