-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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/badge): automatically set aria-hidden #27796
base: main
Are you sure you want to change the base?
Conversation
Solve issue angular#27705 by automatically setting `aria-hidden=true` if mat-icons have a visible badge. Previously, badges on mat-icons caused a warning instructing the developer to set this attribute appropriately.
Hi @wagnermaciel, this PR acts as an alternative to #27717, which you reviewed, so I thought maybe you can review this one as well :) |
Hello @wagnermaciel, is there anything I can do to help you with the review? :) |
Hello Reviewers, could you please provide me with an update of the review status? |
Good Morning @wagnermaciel , any updates? The issue persists. |
Hello @crisbeto, I see you are the most active contributor in this project. Could you please provide me with an status of the current state of development in this repository? Are you still actively developing this and accepting PRs? |
@AlexanderMelde Hi Alexander, I'm not sure how I've missed your previous messages but I wanted to apologize for the delay here. We've been heads down on some other work and this PR has gone unnoticed for way too long I'm not sure if automatically setting |
Thank you for the response and describing your situation, I'm happy to hear that you are discussing the topic! |
Meeting recapOk, just got done speaking with the team on this. The final verdict was that we will need to go with a different route for this fix. The reason we can't go with this route is that making the mat-icon aria-hidden="false" is bad for a11y since the mat-icon text is not meaningful The correct solutionThe correct solution for this will be to remove the warning altogether and then change the mat-badge behavior as follows:
@AlexanderMelde would you be interested in making this change? |
@wagnermaciel Thank you for the detailed recap! |
This PR solves issue #27705 by automatically setting
aria-hidden=true
if mat-icons have a visible badge.Previously, badges on mat-icons caused a warning, instructing the developer to set this attribute appropriately.