-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(docs): Menu button in example is missing an accessible name #15039 #15146
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
Conversation
@@ -1,4 +1,4 @@ | |||
<button mat-icon-button [matMenuTriggerFor]="menu"> | |||
<button mat-icon-button [matMenuTriggerFor]="menu" aria-label="Example icon"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be
Example icon-button with a menu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jelbourn , "menu button" is getting appended by default, so that the complete label becomes "example icon menu button". I tested that. If I give label as "example icon- button with a menu", then it will become "example icon-button with a menu menu button" ? Is there any way to disable those default labels so that we can give complete labels in aria-label itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing what you're hearing is the screen-reader describing the element. If that's the case, it would still be appropriate to include the whole Example icon-button with a menu
would still be appropriate because it's explaining the content separately from what the control is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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. |
Fixes #15039