Chapter 81: Handoff and accessibility in code
A screen reader never sees the mockup. It reads the structure the developer wrote, and a keyboard user moves in the order it sets. So accessibility is decided in handoff and code, and the designer has a part in both. The principles and the WCAG standard are in → 49 Accessibility and inclusive design.
Handoff and specs
Handoff is the point at which a design passes from designers to the engineers who build it. A spec (specification) is what they need, written down: what each screen and component does, and the values to build it with. Handoff used to mean exported screens marked up as redlines, with measurements drawn on in red.1 Inspection tools now read them from the file. Figma’s Dev Mode, launched in June 2023, shows measurements, a CSS box model and code, and lets a designer mark a section ready for development.2
What a tool can’t read is intent. A spec still has to state:
- tokens, not raw values:
space.4, not 16 px (→ 65 Design systems) - every state and the data behind it: loading, empty, error, a very long name (→ 61 Interaction patterns, forms and states)
- behavior on tap, at each breakpoint and with text at 200%
- accessibility annotations: heading levels, landmarks, focus order and the accessible name of every icon-only control (Figure 81.1)
- which parts are placeholders (→ 62 Wireframes, mockups and prototypes)
Handoff goes better as a conversation that starts early.
Feasibility
Feasibility is whether a design can be built with the technology, data, time and people available. IDEO’s account of design thinking sets it beside desirability and viability.3 Does the API return the field this card shows (→ 77 APIs)? Does the platform support the gesture? Is this control in the component library, or new work? Ask engineers for a rough size before polishing, so the expensive part of a design is a deliberate choice.
Design QA
Design QA (design quality assurance) is the designer’s check of the built product against the design and spec before release. It catches what code review and automated tests miss: spacing that drifted, a hover state nobody built, a focus order that jumps around.
At GitLab, product designers must approve every merge request with user-facing changes, including any visual change, however small, and any change to what a screen reader announces. Reviewers test the running change, since screenshots miss hover states, small screens and accessibility.4 For where the review happens, see → 80 The software development lifecycle.
Check in this order:
- The main flows work end to end, including errors and empty states.
- The layout holds at each breakpoint and at 200% zoom.
- Every control works by keyboard alone, with a visible focus indicator.
- Roles, names and states are right; Chrome’s developer tools show them in the Accessibility tab.5
- Colors, type and spacing match the tokens.
Log each issue with a screenshot, the expected result and a severity, so engineers can tell blockers from polish.
Semantic markup and ARIA
The accessibility tree is a version of the page’s structure that the browser builds from the DOM and passes to assistive technologies. Each object in it has a role (button, link, heading), an accessible name (“Filters”), sometimes a description, and states such as checked or expanded.6 WCAG success criterion 4.1.2, Name, Role, Value (level A), requires every interface component to expose these; standard HTML controls used as specified already do.7 Why a <div> dressed as a button fails is explained in → 74 HTML and CSS.
ARIA (Accessible Rich Internet Applications) is the W3C specification of roles, states and properties that describe elements to assistive technologies; version 1.2 became a Recommendation on 6 June 2023.8 ARIA changes what is announced and adds no behavior, so the W3C’s Authoring Practices Guide treats a role as a promise that keyboard support has been written too. Its rule of thumb is “No ARIA is better than Bad ARIA.”9 The W3C’s first rule of ARIA use agrees: if a native HTML element already has the meaning and behavior, use it.10
ARIA earns its place where HTML has nothing to offer. A Filters button that shows and hides a panel carries aria-expanded, so a screen reader says whether it’s open.11 A cart count that updates without a page load sits in a live region, marked aria-live="polite", and is announced when the user is idle.12
Success criterion 2.5.3, Label in Name (level A), requires a control’s accessible name to contain its visible text, because voice-control users say the words they see.13 An aria-label that renames a “Search” button to “Find products” breaks their command.
Keyboard focus and screen readers
Keyboard focus is the element that will receive the next key press; Tab moves it forward, Shift+Tab back. WCAG requires that everything works from a keyboard (2.1.1), that focus can always leave a component (2.1.2), and that it moves in an order that preserves meaning (2.4.3), all at level A.161718 The visible focus indicator is covered in → 61.
Focus order follows the source code, not the screen, so a layout rearranged with CSS can look right and tab wrongly. The tabindex attribute adjusts it: 0 adds an element in source order, -1 makes it focusable only by script, and positive numbers force a position. MDN advises using only 0 and -1.19
Some focus moves have to be designed:
- A skip link is the first link on the page, shown only when focused, that jumps past the navigation to the main content. It meets 2.4.1 Bypass Blocks, and every GOV.UK page must have one.2021
- When the mobile filter panel opens as a modal dialog, focus moves into it, Tab cycles within it, Escape closes it, and focus returns to the Filters button.22 The HTML
inertattribute, supported across browsers since April 2023, removes the page behind from the tab order and the accessibility tree.23 - When an action deletes the focused element, the spec says where focus goes next.
A screen reader reads the accessibility tree aloud (→ 49). In WebAIM’s 2024 survey of 1,539 users, JAWS (40.5%) and NVDA (37.7%) were nearly level as primary desktop screen readers; VoiceOver had 9.7%.24 The GOV.UK Service Manual’s minimum test set adds VoiceOver on iOS, TalkBack on Android, a magnifier and Dragon speech recognition.25 First, though, put the mouse away and finish the main task by keyboard.
See also
49 Accessibility and inclusive design · 61 Interaction patterns, forms and states · 62 Wireframes, mockups and prototypes · 65 Design systems · 74 HTML and CSS · 80 The software development lifecycle
Sources
- Chrome for Developers (n.d.). “Accessibility features reference.” Chrome DevTools documentation.
- Diggs, J., Nurthen, J., Cooper, M. and MacLeod, C., eds. (2023). Accessible Rich Internet Applications (WAI-ARIA) 1.2. W3C Recommendation.
- Figma (n.d.). “Guide to developer handoff.” Figma Best Practices.
- GitLab (n.d.). “Merge Request Reviews.” The GitLab Handbook.
- GOV.UK Design System (n.d.). “Skip link.”
- GOV.UK Service Manual (n.d.). “Testing with assistive technologies.”
- IDEO (n.d.). “Design Thinking by IDEO.”
- MDN Web Docs (n.d.). “Accessibility tree”; “aria-hidden”; “ARIA live regions”; “inert”; “tabindex.” Mozilla.
- Rasmussen, K. (2023). “Making Figma better for developers with Dev Mode.” Figma Blog.
- W3C (2026). Using ARIA. Discontinued draft.
- W3C WAI (n.d.). ARIA Authoring Practices Guide: “Read Me First”; “Dialog (Modal) Pattern”; “Disclosure (Show/Hide) Pattern.”
- W3C (n.d.). Understanding WCAG 2.2: success criteria 2.1.1, 2.1.2, 2.4.1, 2.4.3, 2.5.3, 4.1.2.
- WebAIM (n.d.). “Invisible Content Just for Screen Reader Users.”
- WebAIM (2024). Screen Reader User Survey #10 Results.
Notes
- Figma (n.d.). “Guide to developer handoff: a collection of best practices from the experts.” Figma Best Practices. https://www.figma.com/best-practices/guide-to-developer-handoff/ ↩
- Rasmussen, K. (2023, June 21). “Making Figma better for developers with Dev Mode.” Figma Blog. https://www.figma.com/blog/introducing-dev-mode/ ↩
- IDEO (n.d.). “Design Thinking by IDEO.” https://designthinking.ideo.com/ ↩
- GitLab (n.d.). “Merge Request Reviews.” The GitLab Handbook. https://handbook.gitlab.com/handbook/product/ux/product-designer/mr-reviews/ ↩
- Chrome for Developers (n.d.). “Accessibility features reference.” Chrome DevTools. https://developer.chrome.com/docs/devtools/accessibility/reference ↩
- MDN Web Docs (n.d.). “Accessibility tree.” Glossary. https://developer.mozilla.org/en-US/docs/Glossary/Accessibility_tree ↩
- W3C (n.d.). “Understanding SC 4.1.2: Name, Role, Value.” Understanding WCAG 2.2. https://www.w3.org/WAI/WCAG22/Understanding/name-role-value.html ↩
- Diggs, J., Nurthen, J., Cooper, M. and MacLeod, C., eds. (2023, June 6). Accessible Rich Internet Applications (WAI-ARIA) 1.2. W3C Recommendation. https://www.w3.org/TR/wai-aria-1.2/ ↩
- W3C WAI (n.d.). “Read Me First.” ARIA Authoring Practices Guide. https://www.w3.org/WAI/ARIA/apg/practices/read-me-first/ ↩
- W3C (2026, February 24). Using ARIA, section 2.1, “First Rule of ARIA Use.” Discontinued draft; W3C keeps the rules for reference. https://www.w3.org/TR/using-aria/ ↩
- W3C WAI (n.d.). “Disclosure (Show/Hide) Pattern.” ARIA Authoring Practices Guide. https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/ ↩
- MDN Web Docs (n.d.). “ARIA live regions.” https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Guides/Live_regions ↩
- W3C (n.d.). “Understanding SC 2.5.3: Label in Name.” Understanding WCAG 2.2. https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html ↩
- WebAIM (n.d.). “Invisible Content Just for Screen Reader Users.” https://webaim.org/techniques/css/invisiblecontent/ ↩
- W3C (n.d.). “Understanding SC 2.1.1: Keyboard.” Understanding WCAG 2.2. https://www.w3.org/WAI/WCAG22/Understanding/keyboard.html ↩
- W3C (n.d.). “Understanding SC 2.1.2: No Keyboard Trap.” Understanding WCAG 2.2. https://www.w3.org/WAI/WCAG22/Understanding/no-keyboard-trap.html ↩
- W3C (n.d.). “Understanding SC 2.4.3: Focus Order.” Understanding WCAG 2.2. https://www.w3.org/WAI/WCAG22/Understanding/focus-order.html ↩
- MDN Web Docs (n.d.). “tabindex.” HTML global attributes. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/tabindex ↩
- W3C (n.d.). “Understanding SC 2.4.1: Bypass Blocks.” Understanding WCAG 2.2. https://www.w3.org/WAI/WCAG22/Understanding/bypass-blocks.html ↩
- GOV.UK Design System (n.d.). “Skip link.” https://design-system.service.gov.uk/components/skip-link/ ↩
- W3C WAI (n.d.). “Dialog (Modal) Pattern.” ARIA Authoring Practices Guide. https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/ ↩
- MDN Web Docs (n.d.). “inert.” HTML global attributes. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/inert ↩
- WebAIM (2024). Screen Reader User Survey #10 Results, survey run December 2023 to January 2024. https://webaim.org/projects/screenreadersurvey10/ ↩
- GOV.UK Service Manual (n.d.). “Testing with assistive technologies.” https://www.gov.uk/service-manual/technology/testing-with-assistive-technologies ↩