On this page

Accessibility

Accessible products work for more people, in more situations. Learn how to design, build and write them with Beehexa.

For: Designers, developers, writers

Picture the people who use HexaSync on an ordinary day. A store owner checks last night’s orders with a screen reader. A developer fixes a sync error with only the keyboard. An accountant reads the dashboard on her phone in bright sunlight, in her second language.

Every one of them should be able to finish the job. When they can, the product becomes clearer and faster for everyone else too.

How Beehexa helps

Beehexa components and this site meet WCAG 2.2 level AA, the international standard for accessible web content. In the four places that matter most, Beehexa asks for more: those are the Beehexa rules below.

Start from the components and much of the work is done for you: colours with enough contrast, a focus ring you can always see, targets large enough to tap, and keyboard behaviour that follows the WAI-ARIA Authoring Practices. Each component’s Accessibility tab shows its keys and what is left for your team.

What a component cannot decide is how a screen fits together and what it says. That part is yours, and this page shows how. The accessibility statement lists the standards we follow, known issues and how to report a problem.

Who we design for

Disability is not only something people live with for years. A broken wrist lasts six weeks. A noisy warehouse hides every sound. Sunlight on a phone washes out colour. Design for the whole range, and the same screen works for all of them.

Need Permanent Temporary Situational What helps
Seeing Blind, low vision, colour blind Eye strain, a migraine Sunlight on the screen, a small phone Strong contrast, a word or icon with every colour, alt text, zoom that does not break the layout
Hearing Deaf, hard of hearing An ear infection A noisy office or warehouse, no headphones Captions and transcripts, a visible message for every sound
Moving Limited use of the hands, tremor A broken wrist A phone in one hand, a moving vehicle Keyboard access, large targets, no time limits, no drag-only actions
Thinking and focus Dyslexia, ADHD, memory loss Stress, tiredness, side effects of medicine Interruptions, working in a second language Plain words, short steps, clear headings, errors that say how to fix them, a warning before big changes

Principles

Start from Beehexa components. Contrast, focus, target size and keyboard support come built in. A custom control has to do all of that by hand, so make one only when no component fits.

Make everything work with a keyboard. Some people cannot use a mouse at all. If a mouse can do it, the keyboard can too, in the order people read. Keyboard and focus shows how.

Never rely on colour alone. About 1 in 12 men cannot tell some colours apart. “Failed” in red is clear to everyone; a red dot on its own is not.

Give every control a clear name. Use a visible label. A button with only an icon needs a name a screen reader can say, such as “Delete store”, not “Trash”.

Write plainly, in Vietnamese and in English. Short sentences, everyday words, one idea at a time. Many people read the product in their second language, so skip idioms and slang, and explain a term the first time it appears. See Content.

Let people set up the screen their way. People zoom in, switch to dark mode and turn motion off. The page keeps working at 200% zoom and at 320 px wide without scrolling sideways, in light and dark, with motion off.

Use the right element in code. A button is a <button>, a link is an <a>, and headings go from <h1> to <h4> in order. Screen reader users move around by headings and landmarks (header, nav, main, footer); a div that only looks like one of these is invisible to them.

Warn before big changes. Deleting a store, stopping a sync or sending data to another system cannot always be taken back. Say what will happen and ask people to confirm, or let them undo it. Nothing important changes just because focus moved or someone is still typing.

Check with tools and with people. Automated checks find some of the problems. A keyboard, a screen reader and the people who use them every day find the rest. Testing shows how.

Beehexa rules

WCAG 2.2 AA is where we start. In four places Beehexa asks for more, because these are the problems people meet most often.

Rule What Beehexa asks Why Based on
Contrast Text at least 4.5:1; large text and UI parts at least 3:1. Text people read in full, such as body text, labels and links, at least 7:1: use color.text, color.text.subtle or a link colour. color.text.subtlest (4.5:1) is only for short extra text such as timestamps and hints. Status text on its own tint (color.text.{role} in labels, banners and status buttons) is short text too: at least 4.5:1. Long text is tiring to read when it is pale, more so on a phone in daylight WCAG 1.4.3, 1.4.11; 1.4.6 for body text
Focus Always visible. Most controls: a 2 px ring in color.border.focus, 2 px away from the element (border.width.focused, state.focus.offset). Text fields (input, text area, select): the 1 px border turns color.border.focus and a 2 px inset ring of the same colour sits inside it: a 3 px solid edge with no gap and no halo. Keyboard users need to see where they are at every step WCAG 2.4.7; 2.4.13
Target size At least 24 × 24 px with a mouse. On touch screens, at least 44 × 44 px (size.target.touch). See Size and density. A fingertip is less precise than a pointer WCAG 2.5.8; 2.5.5 on touch screens
Motion When someone turns on reduced motion, movement that is not needed stops. See Motion. Movement can make some people dizzy or sick WCAG 2.3.3

Images, video and sound

People who cannot see or hear a piece of content need the same information in another form.

Content Do
Image that carries information Alt text that says what the image tells, not what it looks like: “Sync failed for 3 of 12 stores”, not “Chart”.
Decorative image, or an icon next to its own label Empty alt (alt="") or aria-hidden="true", so it is not read twice.
Button with only an icon A name that says the action, such as “Delete store”.
Chart A short summary in text, and the data as a table.
Video Captions, and a transcript next to it. No autoplay with sound.
Audio or a sound alert A transcript, and a visible message for every sound.
Text in an image Avoid it. Use real text, so people can zoom, translate and listen to it.

Who does what

Beehexa gives you Your team does
Colour pairs that pass contrast in light and dark Use the pairs as listed; check text on images and charts
Components with keyboard support, a focus ring and the right roles for screen readers Put them in a sensible order and keep focus where people expect it
A 2 px focus ring and 44 px touch targets Keep the ring visible and the targets full size
Label and error styles Write the label, the error message and the alt text
Light, dark and reduced-motion support Check your own screens in each of them

Before you ship

Ask these questions about every screen. Testing explains how to check each one.

  • Can you read every text, and see every icon and border, in light and in dark?
  • Can you do everything with only a keyboard, in a sensible order?
  • Can you always see where the keyboard focus is, even next to a sticky header or an open drawer?
  • On a phone, is every control easy to tap?
  • Does every control and every meaningful image say what it is?
  • Do statuses and errors use words, not only colour, and do errors say how to fix the problem?
  • Do the headings go in order, and does the page have a header, navigation, main content and footer?
  • Does the page work at 320 px wide and at 200% zoom without scrolling sideways?
  • Does movement stop when reduced motion is on?
  • Do deleting, disconnecting and sending data ask first, or can people undo them?
  • Is the page language set (lang="vi" or lang="en"), and are passages in the other language marked?

In this section

  • Keyboard and focus: the order focus moves in, how the focus ring looks, and the keys each kind of component uses.
  • Testing: what to check before a screen ships, who checks it, and with which tools.
  • Accessibility statement: the standards we follow, the issues we know about and how to report a problem.