You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mat-dialog-close wrongly adds an aria-label when the button text content is bound rather than static #15542
AccessibilityThis issue is related to accessibility (a11y)GThis is is related to a Google internal issueP2The issue is important to a large percentage of users, with a workaround
When I have <button mat-dialog-close>Submit</button> in a template, I expect for the resulting HTML to be basically the same, and mat-dialog-close should not add an aria label to the button.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Head.
Is there anything else we should know?
This area was partly addressed in #11093 but has this remaining bug. A workaround is available (just set aria-label explicitly in addition to the inner content), but this is not ideal.
stevenyxu@6645309 demonstrates the bug in the form of a failing unit test. I tried to do a fix but couldn't quickly come up with a performant solution without more work.
AccessibilityThis issue is related to accessibility (a11y)GThis is is related to a Google internal issueP2The issue is important to a large percentage of users, with a workaround
Activity
jelbourn commentedon Mar 23, 2019
@crisbeto we should probably just use a mutation observer here
fix(dialog): aria-label not being removed if text content changes aft…
fix(dialog): aria-label not being removed if text content changes aft…
fix(dialog): aria-label not being removed if text content changes aft…
fix(dialog): remove default aria-label from mat-dialog-close
fix(dialog): remove default aria-label from mat-dialog-close (#15654)
fix(dialog): remove default aria-label from mat-dialog-close (#15654)
angular-automatic-lock-bot commentedon Sep 10, 2019
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.
fix(dialog): remove default aria-label from mat-dialog-close (angular…