Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message and summary list translated examples #2735

Merged
merged 4 commits into from
Aug 1, 2022

Conversation

vanitabarrett
Copy link
Contributor

Fixes #2690

What

Add visual examples to the review app for translating the error message and summary list actions.
Add tests for translating the error message and summary list actions.

Why

Both components have hardcoded visually hidden text. To translate these you can use a bit of a workaround - remove the visually hidden text using visuallyHiddenText: false and setting your own html which includes the visually hidden text.

We should have examples and tests for this, so we don't change the logic without considering this use case.

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2735 July 28, 2022 13:59 Inactive
@vanitabarrett vanitabarrett force-pushed the error-message-summary-list-translate-examples branch from 619552f to 0050853 Compare July 28, 2022 14:01
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2735 July 28, 2022 14:01 Inactive
Copy link
Contributor

@domoscargin domoscargin left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

@vanitabarrett vanitabarrett changed the title Error message summary list translate examples Error message and summary list translated examples Aug 1, 2022
@vanitabarrett vanitabarrett merged commit 9fc0613 into main Aug 1, 2022
@vanitabarrett vanitabarrett deleted the error-message-summary-list-translate-examples branch August 1, 2022 13:43
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.

Add examples and tests for translating error message and summary list content
3 participants