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

Add option to footer component allowing ‘The following links open in a new tab’ guidance to be followed #5722

Open
wimdavies opened this issue Feb 12, 2025 · 0 comments
Labels
awaiting triage Needs triaging by team feature request User requests a new feature

Comments

@wimdavies
Copy link

Related component

Footer

Context

My team has received a request to have one of our services's footer links open in new tabs. We want to follow the guidance for this scenario:

If you’re displaying lots of links together and want to save space and avoid repetition, consider doing both of the following:

  • adding a line of text before the links saying ‘The following links open in a new tab’
  • including (opens in new tab) as part of the link text, so that part of the link text is visually hidden but still accessible to screen readers

However, there's no approved html example of implementing the ‘The following links open in a new tab’ text above the links. Moreover, there's no option providing this in the nunjucks macro, which is what our team relies on.

Issue #1782 noticed this absence back in 2020, but unfortunately nothing came of it; see also its sibling issue on govuk-design-system.

I also note that the ONS Design System has an implementation in place for this accessibility principle in their footer macro, an option they call "newTabWarning". Perhaps this could be a model for bringing this feature into GDS?

Alternatives

In the short term we will likely have to follow whatever html implementation the team that's asking us to make this change has made at their end. However for consistency across our services, it's desirable for us to be able to use the macro in all of them, due to how they share parent templates.

@wimdavies wimdavies added awaiting triage Needs triaging by team feature request User requests a new feature labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage Needs triaging by team feature request User requests a new feature
Projects
None yet
Development

No branches or pull requests

1 participant