Designing dyslexia-friendly navigational components

Accessibility insights and atomic design patterns.

Katja G
UX Collective

--

Did you know that 44% of Australian adults have basic skills in literacy, and it is thought that as many as 1 in 5 people have dyslexia. This is why the readability of your website UI is super important.

(Source: Australian Bureau of Statistics, Adult Learning Australia, Australian Dyslexia Association)

Recently, I explored the intricacies of accessibility and readability for a foundational design pattern — navigational components. This journey uncovered that the standard link design negatively affects the readability of text, particularly for people with dyslexia. 📚

Designing navigational components that are both readable and accessible can be challenging. People with different levels of reading skills and abilities may struggle to read and comprehend underlined link text, and those with visual or motor impairments may encounter difficulties interacting with links. As a designer, it’s crucial to ensure that links are designed with readability and accessibility in mind.

In this article, I’ve explained how the current design is problematic and have created versatile and reusable patterns that can be applied across all navigational components to ensure optimal accessibility and consistency across components and pseudo-states.

The question that started it all

This exploration and research started after a single inquisitive observation: if underlining text is generally discouraged due to its negative impact on readability, then why are links typically underlined? This question led me to delve deeper into the nuances of how reading ability affects user experience.

For more on why underlining is discouraged in design, you can refer to resources such as the GOV.UK accessibility blog, W3C guidelines, and the University of Hamburg’s research on UX ideas.

Why are they underlined in the first place?

Let’s start with a history lesson; the reason for underlining links dates to the early days of the internet; at this time, browsers had limited options so the simplest way to show that a link was different from plain text was to just underline it. Fast forward 30 odd years, and now placing an underline under a link text is a familiar and globally recognisable UI pattern.

Underlining links is a preferred accessibility option for individuals who are colour-blind, visually impaired, or viewing the content in direct sunlight. This practice aligns with WCAG (Web Content Accessibility Guidelines) standard 1.4.1 (Level A), which emphasises that colour alone should not be used as the sole visual means of conveying information, indicating an action, prompting a response, or distinguishing a visual element. By underlining links, designers ensure that crucial information and interactive elements remain discernible and accessible to all users, regardless of their visual capabilities or environmental conditions.

After making this observation I realised that we had a predicament. On one hand, underlining hyperlinks is recommended as it is a familiar UI pattern that meets accessibility requirements for people who are colour-blind or are visually impaired. But on the other hand, underlines cause problems in reading.

Image of a joke meme about how underlining links is preferred but doesn’t support the accessibility needs for people with dyslexia.

How underlining text affects readability

I delved deeper into the issue to understand why underlined text can be problematic for readability. Here are some key reasons:

Overlap with descenders: Default HTML underlines are styled with text-decoration-underline. This CSS style overlaps with letters that have descenders, such as j, p, g, q, and y, this is known as descender crashes, and the overlap can make it challenging for some readers to distinguish these letters and correctly interpret the word.

Shape recognition: Many readers recognise words by their overall shape. Adding an underline to words with descenders alters their shape, potentially affecting word recognition and readability.

side by side examples showing how the underline can change the shape of a word

Distraction from content: Overuse of in-text links, especially within paragraphs of content, can become distracting. Excessive underlining can disrupt the flow of reading and draw attention away from the main content.

Furthermore, underlines disrupt the flow of content, while sentences and words naturally vary in length and size, an underline under a link remains constant. While this consistency can be beneficial in drawing attention to various calls to action in the content, it can also prove distracting when used excessively.

The science of reading

To further understand how the factors mentioned above can hinder reading, it’s essential to consider the science of reading and how individuals with varying levels of literacy approach reading tasks.

Skilled readers have developed efficient reading strategies that involve selectively skimming and scanning content to identify and extract crucial points quickly. They can recognise words and phrases rapidly, relying on contextual clues and their extensive vocabulary.

In contrast, less skilled readers may need to decipher words letter by letter, which can slow down the reading process and increase the likelihood of misrecognizing words. This difficulty in word recognition can lead to a disjointed understanding of sentences, as they struggle to make sense of individual words that do not fit together logically. As a result, confusion rather than comprehension may arise when less skilled readers encounter text with complex formatting, such as underlined words or excessive use of in-text links.

Understanding these differences in reading processes underscores the importance of designing content with clear typography and formatting that supports readability for users across various literacy levels and reading abilities.

Does this affect many people?

Factors influencing reading ability encompass both cognitive and physical barriers. Cognitive challenges may arise from conditions like dyslexia or dyscalculia, as well as encountering technical or overly complex content, unfamiliar languages, or difficult typography. Additionally, cognitive barriers can result from limited literacy due to educational gaps, strokes, or dementia. Physical barriers include viewing content on low-contrast screens, in direct sunlight, motor control limitations, vision impairments, and tunnel vision.

Research into affected populations revealed significant statistics concerning low literacy levels and dyslexia:

  • Data from the 2011–2012 Programme for the International Assessment of Adult Competencies (PIAAC) grouped Australian literacy proficiency into five skill levels with Level 1 being the lowest. Approximately 7.3 million (44%) Australians aged 15 to 74 years had literacy skills at Levels 1 or 2, with a further 6.4 million (39%) at Level 3 (source: Australian Bureau of Statistics, Adult Learning Australia).
  • The Australian Dyslexia Association estimates that dyslexia affects some 10% of the Australian population, and it may be safe to say that dyslexia affects one in five individuals when including the continuum of mild to severe dyslexia (source: Australian Dyslexia Association).

Given this data, it’s clear that designing for reading accessibility should become the standard rather than an exception. Understanding these challenges underscores the importance of creating inclusive and accessible design solutions that cater to diverse user needs and ensure equal access to information for all.

Designing for reading accessibility should become the standard rather than an exception.

Why is there a problem if WCAG standards are met?

This question highlights a common misconception about accessibility standards. While the WCAG (Web Content Accessibility Guidelines) provides a robust framework for digital accessibility, meeting these standards does not guarantee a solution to all accessibility challenges.

The issue arises because, despite the WCAG’s comprehensiveness and ongoing evolution, it remains a living document that continues to adapt to emerging accessibility needs. Unfortunately, not all accessibility requirements, especially those related to cognitive accessibility, are fully addressed in the existing standards.

Specifically, there is limited guidance within the WCAG on how to effectively support individuals with dyslexia and lower levels of literacy. This gap underscores the complexity of accessibility needs and the ongoing efforts required to ensure that digital experiences are truly inclusive and accessible to all users.

Therefore, while meeting WCAG standards is a crucial step towards accessibility, it is essential to go beyond these guidelines by considering diverse user needs and implementing best practices that specifically address cognitive accessibility challenges.

Bridging the gap

Given the challenges surrounding link accessibility and recognising the gaps in WCAG’s guidance on reading-related accessibility, I took the initiative to develop guidelines that would seamlessly complement existing WCAG standards.

I collaborated with fellow professionals in design and development to craft guidelines and designs that addressed the challenges of link accessibility. Together, we harnessed the principles of atomic design to create a robust framework and comprehensive guidelines for all navigational components, ensuring consistency across all link states — default, hover, focus, visited, and active.

Design requirements for optimal accessibility
Design requirements for optimal accessibility

Atomic design patterns for navigational components

Base design pattern

In the refined link design, I have prioritised accessibility and readability by retaining the underline while strategically adjusting its placement. The underline is shifted 5px (0.3em) below the baseline of the text, ensuring that it does not overlap with the descenders of characters like j, y, g, q, and p. This adjustment is achieved using the CSS text-underline-offset property.

Before using the CSS text-underline-offset property, it is advisable to verify if this property is supported by the web browsers used by your audience. You can do this on caniuse.com by searching for text-underline-offset.

Anatomy of the improved hyperlink

The underline under the link itself has also been adjusted, reducing its weight and colour contrast in its default state, thus reducing the level of attention that they previously demanded. Furthermore, on hover states the weight and colour of the link underline are increased, creating greater visual contrast between the states, this provides better support to readers who are colour blind or visually impaired as the transition between states is based on movement and not changes in contrast. Refer to the following section ‘the design across states’ for more information about link underline weight and colour.

By implementing this approach, I have maintained the familiar visual indication of links, continued to ensure WGAC compliance, and minimised potential readability issues.

Designs across states

Default state

If a link is deemed to require an underline at the default state, the underline will have a weight of 0.5px (0.031rem). Optionally the colour of the underline can also be reduced to a lighter tint of the link text colour (minimum contrast 4.5:1).

Anatomy of the improved hyperlink in the default state

The purpose of using a thin underline weight with a light colour is to present the underline under the hyperlink in a more ‘muted’ way. This ensures that the underline is still noticeable but does not distract from the rest of the content.

When to underline a link in the default state

A link component should only be underlined if there is no other recognisable visual indicator or UI pattern that makes it clear that the component is a link.

Here are some scenarios for when and when not to underline a link component in the default state:

  • In-text hyperlinks: Always underline in the default state to clearly indicate clickable content within the text.
  • Primary and secondary buttons: No underline is necessary for the default state as there are other familiar UI patterns used to signify that these items can be selected.
  • Tertiary buttons: As these buttons may resemble standard text it is strongly recommended that they need a distinct visual cue such as an underline.
  • Links in multi-action cards: A distinct visual cue such as an underline is strongly recommended to differentiate clickable elements within complex components.
  • Navigation links: As this is a familiar UI pattern, it does not necessitate the need for an underline at the default state.

CSS

    text-decoration: underline;    
text-underline-offset: 0.3em;
text-decoration-thickness: 0.031rem;
text-decoration-color:

Hover state

To emphasise the hover state, ALL navigational components are recommended to have a clear and recognisable UI pattern such as an underline on the hover state, even if they do not have an underline in their default state.

In this pattern, all navigational components are to have an underline on the hover state.

In the hover state, the weight of the underline will increase to 2px (0.13rem), and the tint of the underline will also increase to be the same tint as the link text colour.

Anatomy of the improved hyperlink in the hover state

Increasing the underline weight and tint on hover ensures that the transition between the default state to the hover state (and back) is based on movement and not on colour change. Basing the transition between states on movement rather than colour ensures that people who are colour-blind or visually impaired can see the change.

transition between default and hover state

CSS

    text-decoration: underline;    
text-underline-offset: 0.3em;
text-decoration-thickness: 0.13rem;
text-decoration-color:

Visited state

In the visited state, the link component will match the characteristics for default, hover, focus and active. For in-text links the link will be a different colour, indicating that this link has been previously visited.

Please note that there are exceptions to this guideline, such as website content related to sensitive topics like domestic violence where discretion is necessary.

Focus and active states

For accessibility purposes, it is strongly recommended that all link components have a focus state, such as a strong box around the link or a high-contrast background.

Creating more complex link components

These rules and designs form the base of all link components; in atomic design this is known as an atom. Creating more complex components such as buttons, accordions, tabs, and cards will require adding on top of these designs.

Graphic showing how to make complex components with these designs as a base

Further information

Progressive enhancement

The concept of progressive enhancement is evident in the weight of the underline in the default state.

In CSS, pixel size can vary depending on the resolution of the screen. On high-resolution devices, a single CSS pixel may span across two device pixels, so a half CSS pixel will cover one device pixel. Conversely, on lower resolution devices, a half pixel will round up to the nearest whole number. By utilising a 0.5px width, we can maintain compliance with accessibility standards 1.4.1 Use of Color (A) and 1.4.3 Contrast (Minimum) (AA), while also achieving a sleek and aesthetically pleasing design.

Side by side comparison showing how the underline will look on high and low resolution devices

Case study

Explore how I used the research and designs from this article to transform government websites through a comprehensive overhaul of 14 navigational components.

View this case study on my website: Navigational components: a government website accessibility overhaul

--

--

Katja is a product designer based in Australia, and writes about UX, accessibility, and design principles. See my portfolio: katjag.com