What
The default language switcher uses links. This has the potential to cause issues when we want to persist form data that a user has entered before switching language.
Explore two options:
- Default the language switcher to links, but allow the use of buttons styled as links instead.
Since the action to a user is still to navigate to a different page, we think the consistency of the link style is preferable to ensuring that buttons look like buttons.
This would allow services to submit a page form and have access to the form data without using JavaScript.
- Provide a JavaScript hook for clicking a language
Allow users to specify a callback for custom behaviour when they click a language.
Who needs to work on this
Developer
Accessibility specialist
Who needs to review this
Developer
Accessibility specialist
Done when
What
The default language switcher uses links. This has the potential to cause issues when we want to persist form data that a user has entered before switching language.
Explore two options:
Since the action to a user is still to navigate to a different page, we think the consistency of the link style is preferable to ensuring that buttons look like buttons.
This would allow services to submit a page form and have access to the form data without using JavaScript.
Allow users to specify a callback for custom behaviour when they click a language.
Who needs to work on this
Developer
Accessibility specialist
Who needs to review this
Developer
Accessibility specialist
Done when