Accessibility for UX and UI designers
full guide
As a designer, you are the advocate of the user. You are responsible for a product that everyone can use, including disabled people. This guide is a starting point.
How to design for accessibility
chapter 1
Operating and navigating
Must know: Don’t design for mouse interactions alone
Not everyone uses a mouse. People navigate with a keyboard, a switch, voice control or a touchscreen. A navigation menu that only opens on hover leaves all of them stuck.
Content that appears on hover, like a tooltip, should also appear on keyboard focus. It should stay visible while people move their pointer over it, and be easy to dismiss.
Don’t
Submenus that only open when people hover over the menu item.
Do
Submenus that open with a click, a tap or the Enter key.
Must know: Design what keyboard interactions look like
Keyboard users need to see where they are. Design a focus style for every interactive element, just as carefully as the hover style.
Watch out
Never remove the browser default focus outline unless you designed an accessible alternative.
Must know: Targets should be large enough
Small targets are hard to hit for people with limited dexterity, and for anyone on a phone. Make buttons and links at least 44 × 44 pixels, including their padding.
WCAG 2.2 also has a minimum at level AA: 24 × 24 pixels, or enough space around a smaller target.
Think about the tab order
In what order does a user tab through an interface? Don’t try to be clever.
From left to right and top to bottom is the default (for people who read from left to right) and usually the way to go for tab order. But when interfaces become more complex, this becomes something to think about.
Is the “close button” the first or the last element in a (modal) window? Do submenus in a navigation menu open when the top-level menu-item receives focus? And does the user have to tab through all the submenu-items or can they skip directly to the next top-level item?
For keyboard users this is a huge part of the interaction, so keep this in mind for your designs.
Skip links
Make it easy to skip long lists of interactive elements.
People who use keyboard navigation (or other ways of sequential navigation) to go through a page, often come across lists of interactive elements that they need to go through before they get to the content they want to read. A common example is the navigation menu at the top of a page.
You can allow users to skip these blocks by including a “Skip link” at the top of the page which links directly to the main content. This link can be hidden by default but should become visible when it receives keyboard focus.
This technique can also be used for other components that contain lots of interactive elements, like carousels.
Don’t hide the focus behind other elements
A sticky header, a cookie banner or a chat button can cover the element that has keyboard focus. Then keyboard users lose track of where they are.
Design how the page scrolls, so the focused element always stays in view.
Don’t
The focused link scrolls under the header, out of sight.
Do
The page scrolls so the focused link always appears below the header.
Don’t rely on dragging
Dragging is hard or impossible for people who use a head pointer, eye tracking or a trembling hand. Anything people can drag should also work with a single tap or click.
Think of arrow buttons to reorder a list, or a slider where you can also tap a value.
Offer an alternative to complex gestures
Pinching, swiping with two fingers or drawing a path is hard or impossible for many people, like people who use a mouth stick, a head pointer or only one finger. Anything that works with such a gesture should also work with a single tap or click.
Don’t
A map that only zooms when people pinch with two fingers.
Do
A map that also has plus and minus buttons.
Colour use
Colour contrast
Text should have a contrast ratio of at least 4.5:1.
Make sure that there’s enough colour contrast in your designs; the contrast ratio between a text and its background should be at least 4.5:1. This helps low vision users in particular.
There is an exception for large or bold text. Text of at least 24px, or bold text of at least 18.66px, should have a contrast ratio of at least 3:1.
There are plenty of tools available to check the colour contrast in your designs.
Make controls and icons stand out
Contrast isn’t only about text. The borders of form fields, the icons people need to understand, and focus indicators need a contrast ratio of at least 3:1 against what’s next to them.
Don’t
A light grey border, with a contrast ratio of 1.3:1.
Do
A dark grey border, with a contrast ratio of at least 3:1.
Use of colour
Don’t use colour as the only way to communicate information.
Using colour to communicate information that is important to the user is fine, as long as you also use another way to communicate the information.
Examples of this are marking erroneous form fields with a red border alone, or a red or green dot to indicate a status. The form fields should also have an icon, a text, or something else that tells the user that something’s wrong. And the status dot could also be a red cross and a green checkmark.
This way people with limited colour vision can also see everything they need to know.
Don’t
A red border around the field, and nothing else.
Do
A red border, an error icon and the text “Enter your email address.”
Links should be recognizable
Don’t remove link underlines from links in body text.
When you remove the underline from links, people with limited colour vision may be unable to recognize the links.
If you do, make sure the link text has a contrast ratio of at least 3:1 with the text around it. Colour alone isn’t enough, though: also add a visual cue, like an underline, when people hover over the link or move focus to it.
Switch your screen to black and white to check your work for issues like these.
Don’t
A link that only has a different colour.
Do
An underlined link, which stands out even without colour.
Layout and zoom
Design for zoom
Many people with low vision zoom in to 200% or 400%. At 400%, a desktop page is as wide as a small phone screen: 320 CSS pixels. The content should then fit in one column, without scrolling sideways. Content that needs two dimensions, like maps, data tables and diagrams, is an exception.
Design a small-screen layout for every page. And check that nothing gets cut off or overlaps when the text is twice as large.
Don’t
The sidebar stays next to the content, so people have to scroll sideways to read every line.
Do
The sidebar moves below the content, and every line fits on the screen.
Leave room for more text spacing
Some people, for example people with dyslexia, increase the space between lines, words and letters to read more easily. Your design should still work when they do, without text that gets cut off or overlaps.
WCAG tests this with a line height of 1.5 times the font size, spacing after paragraphs of 2 times the font size, letter spacing of 0.12 times and word spacing of 0.16 times the font size.
Avoid fixed heights for elements with text, like buttons, cards and tabs. Let them grow with their content.
Don’t lock the screen orientation
Some people have their phone or tablet mounted in one position, for example on a wheelchair. Make sure your design works in both portrait and landscape, unless one orientation is essential, like for a piano app.
Page design
Keep the page design simple and allow for easy skimming.
Avoid walls of text. They can appear intimidating and time-consuming. Users appreciate text that’s chunked and easily scannable.
Use short paragraphs and organise them with sub-headings. If you have long sentences, see if you can split them up into separate bullets.
The guide for content designers has more about headings, lists and plain language.
Be consistent
Elements should be identified the same on all pages.
Elements that are repeated across a website should be identified consistently. This goes for text content, but also for non-text content, like icons.
This makes the website familiar and predictable. That helps everyone, and in particular people with cognitive or intellectual disabilities, people with low vision and blind people.
When they learn how something works on one page, they can more easily find it on other pages.
Forms and processes
Design forms with visible labels and clear errors
Every field needs a visible label, close to the field. Don’t use the placeholder as the label: it disappears as soon as people start typing, and it’s often too light to read.
Show an error next to the field it belongs to, with text and an icon, not only in red. Mark the required fields, or the optional ones, and explain the marking at the start of the form.
The guide for content designers explains how to write labels and error messages.
Don’t
Only the placeholder “Email address” in the field, which disappears when people start typing.
Do
The label “Email address” above the field, which stays visible.
Don’t ask for the same information twice
In a process with several steps, don’t make people type information they already gave. Fill it in for them, or let them select it. Typing is tiring for some people, and remembering what they typed is hard for others.
Don’t
An empty form for the billing address, after people filled in their delivery address.
Do
A checkbox “Billing address is the same as delivery address”, checked by default.
Make logging in easy
Don’t make people remember a password or retype characters from an image to log in, unless there is an alternative. Allow pasting into password fields, so password managers work. A login link by email or a passkey can make it easier too.
Don’t
A field that blocks pasting, so people have to type their password.
Do
A field that allows pasting, so a password manager can fill it in.
Media and motion
Video and audio content need text alternatives
For every media player, think of where the alternative content goes.
Video and audio content need text alternatives so everyone knows what’s going on. Video needs captions and audio description, and both audio and video content need a text alternative like a transcript.
Don’t forget to design the controls of the media player. They need to work with a keyboard, and people need to be able to turn the captions on and off. And where does the transcript go?
Let people stop movement
Moving content distracts people and makes reading hard, especially for people with attention disorders. Anything that moves, blinks or scrolls by itself for more than five seconds needs a way to pause, stop or hide it. Think of a carousel with a pause button.
Never let anything flash more than three times per second. It can cause seizures.
Animations that people trigger themselves, like parallax effects or zooming transitions, can make people with vestibular disorders dizzy or nauseous. Design a calm alternative for people who turned on “reduce motion” in their settings.
Help and contact
Put help in the same place
If you offer help, like contact details, a chat or frequently asked questions, put it in the same place on every page. Then people who need help can find it without searching.
Think about communication
Can users contact you? Don’t rely on everybody being able to use a phone.
Is there a contact form on your website? Is the phone number field required? Be aware that deaf and hard of hearing people may not be able or comfortable to call you, and would rather send an email or use the chat.
This includes (notification) emails you send. If it comes from a noreply address, you exclude people who can’t use a phone.
Don’t
noreply@example.com, with only a phone number for questions.
Do
An address people can reply to, like support@example.com.
Handing over your design
Annotate your designs
A lot of accessibility is invisible in a design. If you don’t write it down, developers have to guess. Add notes to your design for:
- the heading levels
- the focus order, if it isn’t obvious
- the alt text of each image, or that an image is decorative
- the name of buttons that only have an icon
- landmarks, like the navigation and the main content
- where the focus goes when a dialog opens or closes
- Alt text: “Grey wool socks with a red stripe.”
- Heading level 2.
- Icon button. Name: “Add Wool socks to favourites.”
- Focus order: the favourites button, then Add to cart.
Useful links
How to find accessibility issues
chapter 2
You can find many issues yourself, before anything is built. View your design in greyscale to check your use of colour. Try to use your prototype with only a keyboard. And zoom in to 400% to see if the layout still works.
Automated tools help, but they find only part of the issues. They can’t tell if the focus order makes sense or if an error message is clear. Combine them with manual checks and with research with disabled people.
Standards and testing
- How to meet WCAG 2.2 (Quick Reference) (opens external website)
- axe (opens external website), an accessibility testing tool.
- Accessibility Insights (opens external website), a browser extension with automated checks and guided manual tests.
Colour accessibility
- Stark (opens external website), accessibility tools for Figma, Sketch and Chrome, including a contrast checker.
- Colour Contrast Analyser (opens external website), a Mac and PC application for checking colour contrast.
- Accessible color palette builder (opens external website)
User research and usability testing
Include disabled people in your user research and usability testing. This will surface issues in a much earlier stage of your project.
Books about accessible UX design
reading list
- Accessibility for EveryoneLaura Kalbag
- Color Accessibility WorkflowsGeri Coady
- MismatchKat Holmes
- A Web for EveryoneSarah Horton and Whitney Quesenbery
- Inclusive ComponentsHeydon Pickering
- Form Design PatternsAdam Silver