-
Notifications
You must be signed in to change notification settings - Fork 334
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
Update default Exit This Page button text #3989
Conversation
packages/govuk-frontend/src/govuk/components/exit-this-page/template.njk
Outdated
Show resolved
Hide resolved
packages/govuk-frontend/src/govuk/components/exit-this-page/exit-this-page.yaml
Show resolved
Hide resolved
packages/govuk-frontend/src/govuk/components/exit-this-page/template.njk
Outdated
Show resolved
Hide resolved
f0a1d51
to
fd7af09
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, happy to approve
Probably do need that CHANGELOG entry
|
||
The default text of the Exit this Page button has been updated to indicate that the button is a safety tool and not a generic method of leaving the current page. If you are using the component's default label, you may wish to update it to the new value. | ||
|
||
```diff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😮
|
||
```diff | ||
<a href="..." role="button" draggable="false" class="govuk-button govuk-button--warning govuk-exit-this-page__button govuk-js-exit-this-page-button" data-module="govuk-button"> | ||
- Exit this page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
```diff | ||
<a href="..." role="button" draggable="false" class="govuk-button govuk-button--warning govuk-exit-this-page__button govuk-js-exit-this-page-button" data-module="govuk-button"> | ||
- Exit this page | ||
+ <span class="govuk-visually-hidden">Emergency</span> Exit this page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
Update default Exit This Page button text
Updates the default Exit This Page button text to include visually hidden text, so the button reads 'Emergency Exit this Page' to screen reader users, to clarify the button's intended use as a safety feature.
Split out from #3878. Intended to resolve #3688.
I assume this would need a 'Suggested change' in the changelog now that EtP has shipped in 4.7.0?