-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/chips): adds default placeholder for chips input #30452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(material/chips): adds default placeholder for chips input #30452
Conversation
Deployed dev-app for c4ff6b7 to: https://ng-dev-previews-comp--pr-angular-components-30452-dev-oqnzawn0.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
940dd06
to
171b064
Compare
9a1017a
to
4dcabfd
Compare
Updates Angular Components Chips input so that if no placeholder value is provided and if no ariaPlaceholder value is provided, that a default value will be used. This improves accessibility by providing an aria-placeholder value for VoiceControl to use as a name for the input. Fixes b/380092814
Updates to fix lint errors.
Ran command to update chips.md.
…grid Updates previous chips-demo.html so that the input element is not a child of chip-grid, but rather a sibling. When mat-chip-grid contains the input, it hides this as an interactive element from mobile Voice Controls making it inaccessible. Fixes b/380092814
…ition Updates documentation on chips.md regarding proper placement of the input element as a sibiling of as opposed to being a child. Also adds an explanation of the new implementation of ariaPlaceholder on mat-chip input.
…ips input Updates previous fix to Angular Components chips input for using aria-placeholder and converts it to ariaLabel instead. For the chips-demo moved the input related to chip-grid to outside of chip-grid so that Voice Control is able to recognize input as an interactive element. If inside, the input is hidden from Voice Control making it not fully accessible.
Updating previous fix to see if ariaLabel will be read even if input is inside chip-grid.
Updates previous fix by implementing recommended changes by reviewer.
Updates previous change to Chips demo to use aria-label.
Cleans up previous changes and removes unused code.
Updates example which previously used ariaPlaceholder and instead uses an aria-label.
Ran command to update chips.md api guard.
4dcabfd
to
c4ff6b7
Compare
The changes were merged into the following branches: main, 19.2.x |
* fix(material/chips): creates default aria-placeholder for chips input Updates Angular Components Chips input so that if no placeholder value is provided and if no ariaPlaceholder value is provided, that a default value will be used. This improves accessibility by providing an aria-placeholder value for VoiceControl to use as a name for the input. Fixes b/380092814 * refactor(material/chips): fix lint errors Updates to fix lint errors. * build(material/chips): updates build for chips.md Ran command to update chips.md. * fix(material/chips): fixes chips input demo moving input out of chip-grid Updates previous chips-demo.html so that the input element is not a child of chip-grid, but rather a sibling. When mat-chip-grid contains the input, it hides this as an interactive element from mobile Voice Controls making it inaccessible. Fixes b/380092814 * docs(material/chips): update chips docs based on aria-placeholder addition Updates documentation on chips.md regarding proper placement of the input element as a sibiling of as opposed to being a child. Also adds an explanation of the new implementation of ariaPlaceholder on mat-chip input. * refactor(material/chips): convert ariaPlaceholder to ariaLabel for chips input Updates previous fix to Angular Components chips input for using aria-placeholder and converts it to ariaLabel instead. For the chips-demo moved the input related to chip-grid to outside of chip-grid so that Voice Control is able to recognize input as an interactive element. If inside, the input is hidden from Voice Control making it not fully accessible. * refactor(material/chips): testing ariaLabel with input inside chip-grid Updating previous fix to see if ariaLabel will be read even if input is inside chip-grid. * refactor(material/chips): make recommended changes after review Updates previous fix by implementing recommended changes by reviewer. * refactor(material/chips): updates chips demo to use aria-label Updates previous change to Chips demo to use aria-label. * refactor(material/chips): removes commented out code Cleans up previous changes and removes unused code. * docs(material/chips): updates chips input accesibility recommendation Updates example which previously used ariaPlaceholder and instead uses an aria-label. * build(material/chips): updates build for chips.md Ran command to update chips.md api guard. (cherry picked from commit 09b25a1)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Updates Angular Components Chips input by moving the input outside of the mat-chip-grid to ensure the input is accessible by Voice Control. Additionally updates documentation and examples to recommend using an aria-label on the input to optimize accessibility.
Before screenshot 1st Chip input
Before screenshot 2nd Chip input
After screenshot 1st & 2nd Chip input
Fixes b/380092814