Skip to content

fix(ui): translate Dialog close button aria-label#16991

Open
jhjh1214 wants to merge 1 commit into
payloadcms:mainfrom
jhjh1214:fix/dialog-close-button-translation
Open

fix(ui): translate Dialog close button aria-label#16991
jhjh1214 wants to merge 1 commit into
payloadcms:mainfrom
jhjh1214:fix/dialog-close-button-translation

Conversation

@jhjh1214

Copy link
Copy Markdown

What?

The close button in DialogHeader had a hardcoded aria-label="Close" string. The translation key general:close already exists in the translations package — it just wasn't being used here.

How?

  • Import useTranslation from the Translation provider
  • Use t('general:close') for the close button's aria-label

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