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

Non-descriptive links on the website #4013

Open
3 of 9 tasks
selfthinker opened this issue Aug 8, 2024 · 4 comments
Open
3 of 9 tasks

Non-descriptive links on the website #4013

selfthinker opened this issue Aug 8, 2024 · 4 comments
Assignees
Labels
accessibility audit july 2024 Issues from July 2024 external accessibility audit against WCAG 2.2 criteria

Comments

@selfthinker
Copy link
Contributor

selfthinker commented Aug 8, 2024

This issue is from the accessibility audit of the Design System website by DAC in July 2024.

DAC's description

  • Page: Password input and Exit a page quickly
  • WCAG reference: 2.4.9 Link Purpose (Link Only) (Level AAA)
  • Issue ID: DAC_Non_Descriptive_Links_Link_Only_01 and DAC_Non_Descriptive_Links_Link_Only_02

Password input page

There are multiple links on this page that will direct users to the corresponding component/pattern. When viewing the page out of context screen reader users might not understand the full purpose of these links. For example on this page, the links: Text input, Confirm a phone number, Ask users for passwords & Validation; when isolated out of context could be interpreted as controls of the page, instead of the current purpose which is to take users to the relevant component/pattern.

Three screenshots of various occurrences of such links

'Exit a page quickly' page

There are two links on this page which are presented to users as ‘Exit this page’. When viewing the page in context these links will make sense to screen reader users as the term ‘component’ is associated with it.
However, when viewing the page out of context screen reader users will only encounter the information of ‘Exit this page’ which can be misleading and some users might expect this link to ‘Exit’ the page, whereas it will take them to the ‘Exit this page’ component.

Screenshot of a section with such a link

DAC's proposed solution

Password input page:
To ensure the purpose of each of the links is clear, include more information within the programmatical link text so when screen reader users are viewing the page out of context they are aware that the links will direct them to components/patterns, instead of them appearing to look like controls on the page.

'Exit a page quickly' page:
We suggest including the word ‘component’ within the programmatical link. As a result of this, the link will be conveyed to screen readers as ‘Exit this page component’ when viewing the page out of context.

Additional instances

As this is probably the case on most pages across the website, this work should include checking links on other pages.
It might be worth making two different cards for this: One for checking and recording all instances, the other for fixing them.

To save time, it makes sense to audit all the body copy issues together:

Needed roles

Content designer

Tasks

@calvin-lau-sig7
Copy link
Contributor

calvin-lau-sig7 commented Sep 12, 2024

To detect we can:

  • scape all in-page links on a page
  • show them, probably as a spreadsheet (link text will be without the context of the paragraph, but it's sort of the point for us)

To assess, we can:

  • view them in the spreadsheet and label each link as compliant or not

To resolve, we can:

  • include more of the adjacent sentence as the link text, so the link text provides context on why its there
  • add some 'descriptive words' (such as "component") to the link to distinguish it from a possible page control
  • last resort, separate out the link as a separate sentence or paragraph

@selfthinker
Copy link
Contributor Author

We talked to DAC about this issue yesterday, asking if the links in the navigation are also affected. They said the context of the page and the section on the website makes it clearer that the navigation will be about components. (Which is technically still "out of context" for this success criterion.) But they also said that they were stricter than usual in our case as otherwise there wouldn't have been many issues.

@selfthinker
Copy link
Contributor Author

Just for more context, this is what the GOV.UK content guidance says about link text.

@calvin-lau-sig7
Copy link
Contributor

calvin-lau-sig7 commented Oct 18, 2024

Update for potential squad wrap-up after this cycle:

As of current date, links have been gathered and Accessibility audit squad assessment all the links is expected to be complete by end-cycle in the Accessible content worksheet.

Further work will be needed for:

  • content designer to look across all links marked for review
  • content designer to write edits to make the links descriptive
  • team review of changes
  • put edits into a pull request and publish

Remaining work is pretty sizeable and probably be bigger than a small story, as it'd require medium-sized involvement from team members to help review the numerous edits. But this could possibly be done async outside of regular cycle work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility audit july 2024 Issues from July 2024 external accessibility audit against WCAG 2.2 criteria
Projects
Development

No branches or pull requests

2 participants