Repository navigation
fix(ButtonClose): name the button Close by default - #357
Merged
Merged
Conversation
- static host `aria-label="Close"`, also in `alertButtonCloseTemplate` and in server HTML - `aria-label` of the page (attribute or binding) and of a composing directive wins - Behavior change: `title` or text no longer names the button, nor does a static host `aria-label` of a directive imported before `ButtonCloseDirective`; a test looking for a button named "Close" can match one more
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cButtonClosegets a static hostaria-label="Close": a bare close button in a modal header or inalertButtonCloseTemplatehas a name, also in server HTML. Anaria-labelof the page (attribute or binding) and of a composing directive wins; a binding tonullstill removes the name.Behavior change:
titleor text no longer names the button, nor does a static hostaria-labelof a directive imported beforeButtonCloseDirective. A test looking for a button named "Close" can match one more, e.g. modal header and footer.