Skip to content
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): remove tab-index attribute from mat-chip host #29436

Merged
merged 6 commits into from
Jul 31, 2024

Conversation

DBowen33
Copy link
Contributor

@DBowen33 DBowen33 commented Jul 15, 2024

remove tabindex attribute from mat-chip as this makes the mat-chip element focusable for mobile screen readers (see YAQS link below). Having tabindex=-1 causes mobile screen readers to focus on the chip twice. removing makes it to where user only needs to swipe once to get the content of the chip.

https://yaqs.corp.google.com/eng/q/4811580888973312?ved=0CAAQ_rQKahcKEwiw_YGl9a6HAxUAAAAAHQAAAAAQHA

Before: https://screencast.googleplex.com/cast/NjAzNzgyNzIyMDQwNjI3MnwyMDVjMjkyZi02Mw
After: https://screencast.googleplex.com/cast/NTQxMzQ2MzM5NTQwMTcyOHw3NThhZjdlNi1mOQ

fixes b/286286473

added role presentation to mat-chip host so that mobile SR users do not have to
double swipe to traverse chip

fixes b/286286473
@DBowen33 DBowen33 marked this pull request as ready for review July 15, 2024 18:15
@DBowen33 DBowen33 requested a review from a team as a code owner July 15, 2024 18:15
@DBowen33 DBowen33 requested review from crisbeto and andrewseguin and removed request for a team July 15, 2024 18:15
@DBowen33 DBowen33 marked this pull request as draft July 15, 2024 18:16
@jelbourn jelbourn added the dev-app preview When applied, previews of the dev-app are deployed to Firebase label Jul 15, 2024
Copy link

github-actions bot commented Jul 15, 2024

Deployed dev-app for 48f808c to: https://ng-dev-previews-comp--pr-angular-components-29436-dev-zgl7safa.web.app

Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt.

@DBowen33 DBowen33 force-pushed the talkback-double-swipe-issue-fix branch from e61b849 to 4d4b33b Compare July 17, 2024 21:16
add aria-hidden to host mat-chip so Talkback ignores element

fixes b/286286473
@andrewseguin andrewseguin added dev-app preview When applied, previews of the dev-app are deployed to Firebase and removed dev-app preview When applied, previews of the dev-app are deployed to Firebase labels Jul 18, 2024
DBowen33 added 3 commits July 22, 2024 20:17
remove tabindex

fixes b/286286473
update api signature

fixes b/286286473
fix lint issue

fixes b/286286473
@andrewseguin andrewseguin added dev-app preview When applied, previews of the dev-app are deployed to Firebase and removed dev-app preview When applied, previews of the dev-app are deployed to Firebase labels Jul 23, 2024
remove aria hidden

fixes b/286286473
@DBowen33 DBowen33 marked this pull request as ready for review July 25, 2024 00:57
@DBowen33 DBowen33 changed the title fix(material/chips): added role presentation to mat-chip host fix(material/chips): remove tab-index attribute from mat-chip host Jul 25, 2024
@andrewseguin andrewseguin added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Jul 31, 2024
@amysorto amysorto removed the request for review from crisbeto July 31, 2024 17:15
@amysorto amysorto merged commit 5403b2b into angular:main Jul 31, 2024
25 of 27 checks passed
amysorto pushed a commit that referenced this pull request Jul 31, 2024
…29436)

* fix(material/chips): added role presentation to mat-chip host

added role presentation to mat-chip host so that mobile SR users do not have to
double swipe to traverse chip

fixes b/286286473

* fix(material/chips): add aria-hidden

add aria-hidden to host mat-chip so Talkback ignores element

fixes b/286286473

* fix(material/chips): remove tabindex

remove tabindex

fixes b/286286473

* fix(material/chips): update api signature

update api signature

fixes b/286286473

* fix(material/chips): fix lint issue

fix lint issue

fixes b/286286473

* fix(material/chips): remove aria hidden

remove aria hidden

fixes b/286286473

(cherry picked from commit 5403b2b)
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker dev-app preview When applied, previews of the dev-app are deployed to Firebase target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants