Skip to content

fix(dialog): remove default aria-label from mat-dialog-close - #15654

Merged
mmalerba merged 1 commit into
angular:masterfrom
crisbeto:dialog-aria-label-remove
Apr 3, 2019
Merged

fix(dialog): remove default aria-label from mat-dialog-close#15654
mmalerba merged 1 commit into
angular:masterfrom
crisbeto:dialog-aria-label-remove

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Currently we add an aria-label by default to close buttons that don't have text. This is unreliable, because text can come in at any time and it takes a lot of code to keep track of it. Furthermore, the default text is in English which means that sites in different languages will have to override it anyway. These changes remove the default aria-label and add some guidance to the docs on how to deal with labelling the close button.

Fixes#15542.

Currently we add an `aria-label` by default to close buttons that don't have text. This is unreliable, because text can come in at any time and it takes a lot of code to keep track of it. Furthermore, the default text is in English which means that sites in different languages will have to override it anyway. These changes remove the default `aria-label` and add some guidance to the docs on how to deal with labelling the close button.
Fixesangular#15542.
@crisbetocrisbeto added P2 The issue is important to a large percentage of users, with a workaround Accessibility This issue is related to accessibility (a11y) target: patch This PR is targeted for the next patch release labels Mar 29, 2019
@crisbeto
crisbeto requested a review from jelbourn as a code ownerMarch 29, 2019 20:14
@googlebotgooglebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 29, 2019

@jelbournjelbourn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbournjelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Mar 29, 2019
@ngbot

ngbotBot commented Mar 29, 2019

Copy link
Copy Markdown

I see that you just added the pr: merge ready label, but the following checks are still failing:
failure status "branch-manager" is failing

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@mmalerba
mmalerba merged commit c3ead65 into angular:masterApr 3, 2019
jelbourn pushed a commit that referenced this pull request Apr 4, 2019
Currently we add an `aria-label` by default to close buttons that don't have text. This is unreliable, because text can come in at any time and it takes a lot of code to keep track of it. Furthermore, the default text is in English which means that sites in different languages will have to override it anyway. These changes remove the default `aria-label` and add some guidance to the docs on how to deal with labelling the close button.
Fixes#15542.
@angular-automatic-lock-bot

Copy link
Copy Markdown

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-botangular-automatic-lock-botBot locked and limited conversation to collaborators Sep 10, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

AccessibilityThis issue is related to accessibility (a11y)action: mergeThe PR is ready for merge by the caretakercla: yesPR author has agreed to Google's Contributor License AgreementP2The issue is important to a large percentage of users, with a workaroundtarget: patchThis PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mat-dialog-close wrongly adds an aria-label when the button text content is bound rather than static

4 participants

@crisbeto@jelbourn@googlebot@mmalerba