Summary list: Allow customisation of full action link content #2649
Labels
🕔 hours
A well understood issue which we expect to take less than a day to resolve.
localisation
nunjucks
summary list
What
Currently, action links in the Summary list have a hardcoded content order of the action name (
html
ortext
), followed by an area of visually hidden text (visuallyHiddenText
). The visually hidden text includes a hardcoded space separating it from the prior text, and is usually the same or similar to the key for the current row. For example:Why
This fixed ordering doesn't accommodate localisation into languages where this text appears in a different order. For example, in German we might have this:
Having a hardcoded space is also undesirable in certain languages, such as Chinese:
Although it is currently possible for services to pass HTML into the action links and ignore the
visuallyHiddenText
parameter completely, we may want to investigate methods of either makingvisuallyHiddenText
work with other languages, or removing the use of a dedicated/hardcoded parameter in favour of using thehtml
parameter.Who needs to work on this
Developers
Who needs to review this
Developers
Done when
visuallyHiddenText
could work with non-English languages.The text was updated successfully, but these errors were encountered: