Skip to content

[6.x] Fix the delete site button's accessible label - #19401

Merged
brandonkelly merged 2 commits into
6.xfrom
fix/fix-delete-site-label
Aug 12, 2026
Merged

[6.x] Fix the delete site button's accessible label#19401
brandonkelly merged 2 commits into
6.xfrom
fix/fix-delete-site-label

Conversation

@brianjhanson

Copy link
Copy Markdown
Contributor

Description

The delete button's icon in the sites table had label="t('Delete site'" — an unevaluated string rather than a bound expression, missing both the leading : and the closing paren. The button announced that literal text to screen readers and the label was never translated.

Binds the expression properly and imports t, which the component wasn't importing.

🤖 Generated with Claude Code

The icon's label was the unevaluated string `t('Delete site'` rather
than a bound expression, so the delete button in the sites table
announced that literal text and the label was never translated.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/uiopen Storybook

No changed components detected in this Storybook.

resources/jsopen Storybook

No changed components detected in this Storybook.

@brandonkelly
brandonkelly merged commit c0121f3 into 6.x Aug 12, 2026
23 checks passed
@brandonkelly
brandonkelly deleted the fix/fix-delete-site-label branch August 12, 2026 15:31
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.

2 participants