Our team

Join our team and help us transform urban mobility

Design

Works for whom? Accessibility, component by component

Dec 02, 2026

Until not long ago, when I reviewed a button I focused on making sure it looked right and worked well. But worked well for whom? I had sometimes wondered how someone who can’t see the screen would use it, though I had never really stopped to think it through.

I work on the Design System team, and when I needed training in accessibility, I was offered the chance to do it with Jonathan Chacón, Accessible Software Engineer. I’ve always been drawn to learning about what I know least, so I went in curious to see how a mind like his, which seems to run at a thousand miles an hour, actually works.

One of the first cases we looked at was a confirm button that becomes disabled while the action is processing. Visually, it’s two seconds of spinner. For someone using a screen reader, though, the focus disappears along with the button and jumps back to the top of the page, with no way of knowing whether the action went through.

Two-step diagram of a trip summary screen. First, keyboard focus is on the Confirm button. Then, while the action processes, the button shows a spinner but is disabled in code, focus jumps to the Trip summary heading at the top of the page, and there is no way to know whether the action went through

It was a button I would have approved without a second thought, which made me wonder how many people were being left out of what I designed without my realising it. Since then, every time I work on a component I ask myself whether anyone could use it, including someone who navigates only with a keyboard.

From checklist to document

With this first training behind me, it was time to act: review the Design System and make the changes it needed. The most obvious option was to turn the accessibility standard into a checklist, quick to put together and easy to use.

I soon saw that it fell short. A checklist tells you whether something has been checked, but not what needs checking or why. It also doesn’t live next to the component it refers to, so it ends up in a folder nobody opens. The button case proved it, because no box saying “the loading state works” would have explained where the focus has to go when the spinner disappears.

What I needed was one document per component that anyone could understand without knowing about accessibility, including whoever joins the team a few years from now. It had to explain what each component must meet, at what threshold and on which platform, and make clear what is mandatory and what is desirable.

A document read by people and AI tools

That’s where Markdown came in, a plain-text format that reads well with a screen reader and that an AI tool understands without trouble. At Cabify we’re working to make the Design System agentic, and this documentation is one of the pieces that will get us there.

The first step was to define a common structure. If an engineer wants to know where the focus goes when a dialog closes, they’ll find it in the Dialog document in the same place as in the Button one. There are eight sections, always in the same order, from the component’s role to its edge cases. Before them comes some machine-readable metadata, such as the component, the language, the conformance level and the platforms.

---
component: Button
lang: en
audience: ai-and-engineering
target_conformance: WCAG 2.2 AA
platforms: [web, ios, android]
platform_detail:
  web: HTML/ARIA
  ios: UIKit and SwiftUI
  android: Material Design 3 with Jetpack Compose
    and Android Activities
status: reviewed (Jonathan)
sources:
  - WCAG 2.2 (W3C)
  - WAI-ARIA Authoring Practices (APG)
  - Apple Human Interface Guidelines
  - Material Design 3
legend:
  required: Mandatory to meet WCAG 2.2 AA, the platform
    minimum, or a Cabify DS baseline decision.
  recommended: Cabify quality bar above the AA minimum
    (often AAA or best practice).
---

Each requirement carries a tag, [Required] if it’s mandatory or [Recommended] if it goes further. In a review, the usual question is whether a failure blocks the release or can wait, and with the tag the answer is already written down. When the requirement comes from the standard, it also cites the exact criterion and its level, in case anyone wants to check it at the source.

## 3. Size & touch target
- **Desktop web — [Required]** Target area ≥ **24×24 CSS px**.
  *(2.5.8 Target Size (Minimum) — AA)*
- **Mobile web — [Required]** Minimum size **40×40 px**
  (Cabify baseline for touch web).

To write the documents I started from the training materials and from other sources Jonathan gave me. With the help of several AI tools I turned them into a list of everything each one had to cover, and from there I wrote the document for each component. None was considered finished until Jonathan had reviewed it and confirmed that everything was correct and complete. AI helped me not to leave anything out, but the final word was always human.

Every document exists in Spanish and in English, the language engineering and the tools work in.

The button from the beginning is the first edge case in the Button document, which explains what to do with the focus when loading ends:

## 8. Edge cases
1. **Focus management after "Loading" ends:** if the
   button becomes disabled during loading, the screen
   reader loses focus and jumps to `body`. Correct
   pattern: keep focus managed and, when finished, return
   it to the button (if it persists) or move it explicitly
   to the result/next step, announcing the change via a
   live region. Never leave focus orphaned.

Beyond the minimum

I took WCAG, the international accessibility guidelines, as my reference. The European Accessibility Act, which has applied since June 2025, relies on the EN 301 549 standard, which currently points to WCAG 2.1 level AA. At Cabify we work with WCAG 2.2 level AA, which also takes mobile devices more into account, so I based the work on that version. Much of what it adds hits components directly, such as the size of what you tap or making sure the focus is never hidden behind a sticky bar.

What level AA requires carries the [Required] tag. I also included some level AAA criteria, marked as [Recommended], because we aim higher. Several aren’t yet feasible on mobile, but they show where we need to head.

The guidelines don’t talk about platforms, so Jonathan and I had to adapt them to web, iOS and Android with the help of Apple’s and Google’s guidelines. On desktop web, the standard settles for 24 px for anything you click, because a cursor is precise. A finger isn’t, and more and more people browse the web on their phones. That’s why the documentation requires 40 px on mobile web and recommends 44–48 px, the same as iOS and Android.

Eleven components later

The components documented so far are Button, Input, Selection control, Dialog, Tooltip, Navigation bar, Banner, Whisper (our toast), Badge, Input chat (the message composer) and Charts. Alongside them there’s a general document with what most of them have in common. It ends with a question that works for any new component: is it perceivable, named, reachable and operable by keyboard, and is its state announced without creating barriers?

The idea is that anyone can check whether a component complies without being a specialist, because the document already says what to review. Interpreting the standard is still the job of people who know accessibility, but the rest can be verified by the team, or even by a tool that reads the same file.

The documents have already had an effect on the Design System itself. With them we fixed keyboard focus, which already existed but wasn’t well resolved and didn’t reach every component. Small buttons also moved to a minimum height of 48, above Apple’s 44 pt. The way we review a component has changed too. We now start with its document, either handing it to an AI tool to check it against the component or applying the changes it describes directly. That way, whatever the AI reviews or generates starts from the same requirements as anyone on the team.

The next step is to check, component by component, that what is written is actually met, combining automated and manual review.

The same button, again

Today I still ask myself the same question, works for whom?, but now I know where to look for the answer.

Along the way I’ve also learned where a component’s reach ends. I can have a button that meets all its requirements and still a screen where the screen reader announces the pay button before the amount. That’s decided when each screen is put together, which is why the documentation doesn’t replace the judgement of whoever designs it.

Now I’d spot that confirm button straight away, and the Design System wouldn’t let it through either.

A purple button labelled Button, with a blue keyboard focus ring around it. Next to it, a hand makes a finger heart

Thanks to Jonathan Chacón, Accessible Software Engineer, for reviewing every document and this article.

Alex Simancas

Product Designer

Choose which cookies
you allow us to use

Cookies are small text files stored in your browser. They help us provide a better experience for you.

For example, they help us understand how you navigate our site and interact with it. But disabling essential cookies might affect how it works.

In each section below, we explain what each type of cookie does so you can decide what stays and what goes. Click through to learn more and adjust your preferences.

When you click “Save preferences”, your cookie selection will be stored. If you don’t choose anything, clicking this button will count as rejecting all cookies except the essential ones. Click here for more info.

Save preferences