Skip to content

fix(ButtonClose): name the button Close by default - #357

Merged
xidedix merged 1 commit into
v5.7from
fix/button-close-label
Nov 25, 2026
Merged

xidedix merged 1 commit into
v5.7from
fix/button-close-label

Conversation

@xidedix

@xidedix xidedix commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

cButtonClose gets a static host aria-label="Close": a bare close button in a modal header or in alertButtonCloseTemplate has a name, also in server HTML. An aria-label of the page (attribute or binding) and of a composing directive wins; a binding to null still removes the name.

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, e.g. modal header and footer.

- 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
@xidedix
xidedix merged commit 91e70da into v5.7 Nov 25, 2026
9 checks passed
@xidedix
xidedix deleted the fix/button-close-label branch November 25, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant