Check three things on each signup form control: the focus indicator's size, its contrast against the surface beneath it, and any restyled border. The three cases below show how to test each one.
Key takeaways
- Minimum area: Focus Appearance sets a minimum area for the focus indicator itself, not a maximum.
- Two backgrounds: Check the indicator against the surface it sits on, not just the control you drew it around.
- Boundary swap: If you recolor the border instead of adding a ring, that border itself has to contrast.
- Spot color: Internal markers can work only when they contrast with what is directly behind them inside the control.
The three cases at a glance
- Case one (size): Focus Appearance sets a minimum area, not a maximum—draw more than the floor so the indicator survives gradients, shadows, and narrow viewports.
- Case two (contrast): The indicator must contrast against the adjacent background where it sits, not just the button; internal markers must contrast with the control's own fill.
- Case three (border swap): If you recolor the border instead of adding a ring, that border is the indicator and must hold against both sides of the boundary.
- The usual culprit: A blanket
outline: nonein your global reset removes the user-agent exception and puts the full contrast obligation on you. - How to test: Tab through the form, look away and back, and check the indicator at a narrow viewport width and inside any modal.
Why test three specific cases
You own a signup form. You know its buttons and fields by heart. What you may not know is which three visual situations break a keyboard user's ability to follow their own focus.
The three cases below are drawn from the World Wide Web Consortium's own understanding documents. Cases two and three have documented pass and fail examples. Case one gives a minimum area instead. Read them in order. Test your form against them today.
The first case is the size of the indicator. The second is where that indicator sits and what it sits against. The third is what happens when you restyle the control's border rather than draw a ring around it.
These are not edge cases. Every Tab press through email, password, confirm, and submit walks this path.
Case one: does your indicator cover enough of the control
The World Wide Web Consortium publishes an understanding page for Success Criterion 2.4.13, Focus Appearance. Its framing sentence matters more than any pixel rule: "This only specifies a minimum area for the focus indicator."
Read that twice. The specification is a floor. You can draw more. A thin one-pixel ring hugging the outside of a large button may technically exist while being functionally invisible to someone scanning the form at speed.
The practical question for your signup form is simple. Take your primary submit button. Put a ring around it. Does the ring occupy enough of the button that a person glancing at the screen finds it in one motion? If you squint and lose it, your keyboard users lose it too. For sizing rules on buttons, see signup button size rules.
Think about how Tab moves through your form. Email, then password, then any checkbox, then submit. Each hop has to land somewhere obvious. If the indicator is too slight, the hop is invisible, and the user is typing their password into the confirm field without knowing.
A larger indicator also survives your own design system. If your button has a gradient, a shadow, or a hover state that shifts color, a small ring gets swallowed. Give yourself headroom. Draw more than the floor.
Focus Appearance does not cap you. Nothing in it says you must stop at the minimum. You can go well past it. Outline thickness, offset, a background tint, an underline on the label, a box-shadow spread — all of these add area.
The cost of going bigger is visual noise. On a form with six controls, six large rings can fight each other. Solve that by making the indicator follow focus, not hover. Only one control has focus at a time.
Here is a concrete test you can run in minutes. Tab to your submit button. Look away. Look back. Did your eye land on the button, or did you have to hunt? If you hunted, the indicator is hard to find, so draw more area.
Illustrative example: a look-away test
Imagine a submit button that is 50 pixels tall. A 1-pixel ring hugging its edge is easy to miss at a glance. Add an offset so the ring sits 5 pixels outside the button and draws a band 3 pixels thick. Then look away and back. If your eye lands on it in one motion, the indicator is large enough for this control. If you hunt, draw more.
The same test works on your email field. Text inputs are worse than buttons because the field already has a visible boundary. A ring around that boundary can blend into the boundary. Push it outward. Add offset. Let it clearly sit outside the box the field already occupies.
One trap worth naming: responsive design. Your indicator may be generous at desktop width and cramped at mobile width, where the button spans the screen and the ring gets clipped by the viewport edge. Check both.
If your form is built on a design system, this is a system-level fix. One component, one rule, every form inherits it. If your form is hand-rolled, this is a three-line change in your focus styles today.
Case two: what the indicator sits against
The second case is contrast, and it has two halves. The World Wide Web Consortium's understanding page for Success Criterion 1.4.11, Non-text Contrast, states the first half plainly: "In combination with 2.4.7 Focus Visible, the visual focus indicator for a component must have sufficient contrast against the adjacent background when the component is focused, except where the appearance of the component is determined by the user agent and not modified by the author."
Two things in that sentence. First, the indicator has to contrast with the adjacent background. Not with the button. With whatever is next to it. Second, if you never touch the browser's default focus style, you inherit the exception.
If your form overrides the default outline, the exception is gone, and the full contrast obligation lands on you.
Now the concrete cases. The W3C gives paired pass and fail examples.
An internal yellow indicator, #FFFF00, on a blue button background, #4189B9: pass. The marker is inside the control, and it contrasts with what is directly behind it.
An external yellow indicator, #FFFF00, on a white background, #FFF: fail. Same yellow, different surroundings. The ring sits outside the control, on the page surface, and yellow on white disappears.
An external green indicator, #008000, on that same white background: pass. Dark green against white holds. The ring is visible where it actually sits.
This is a common failure to test for. Your button is dark, your ring is bright, and it looks great in your component library's isolated demo. Put that button on a white card on a white page and the ring evaporates.
If your signup form sits on a light surface, such as white, off-white, or a pale gray card, and your focus ring is a bright yellow, a cyan, or a pale brand tint, test it against that specific surface, not against the button.
The fix is usually one of two moves. Darken the ring so it holds on the light surface. Or give the ring its own backing — a second, darker stroke behind the first — so the composite reads against whatever is behind it.
There is a second background inside the control worth checking. An inner border of dark green, #008000, contrasts with the black border but does not contrast with the blue component background. The inner border is sandwiched. It wins on one side and loses on the other.
On a form control, that sandwich shows up when you draw a colored line just inside the control's own edge. The line sits between the border and the fill. It has to hold against both.
Here is the summary of the color cases side by side, so you can scan which pattern your form matches:
| Pattern | Indicator position | Against | Result |
|---|---|---|---|
| Yellow #FFFF00 on blue button #4189B9 | Internal | Component background | Pass |
| Yellow #FFFF00 on white page #FFF | External | Adjacent background | Fail |
| Green #008000 on white page #FFF | External | Adjacent background | Pass |
| Green inner border #008000 beside blue component fill | Inner border | Component background | Fail |
| Blue border #4189B9 changing to green #4B933A | Border swap | Page background | Fail |
Find the row that matches your form's pattern and read its Result cell. If it says Fail, that is your next change.
A practical sweep: Tab through the whole form with the browser window resized to a narrow width. Do it once on a light background and once inside a modal, if you use one. The modal's dimmed backdrop is a different adjacent background, and a ring that passed on the page can fail inside it.
If your form sits on an image or a photograph — some hero signups do — the adjacent background varies from pixel to pixel. Push the form onto a solid panel, or add an opaque backing behind the control itself. Do not rely on the image cooperating.
The user-agent exception is worth one more thought. If you have not modified the default appearance, the exception covers the contrast requirement. Check your global reset for a blanket outline: none rule, because that removes the default and leaves the contrast obligation with you. That single rule is a common source of lost focus indicators.
This is also where mobile matters. If your form auto-focuses the first field on load, a phone user sees that ring for a moment against whatever the page background is. Test it there too.
The whole case reduces to one habit: always evaluate the indicator against the surface it actually sits on in production, in the real layout, at the real breakpoint. Component-library demos lie about this.
Case three: when you restyle the border instead of adding a ring
Some teams skip the ring. They change the control's border color on focus instead. It is lighter visually. It also carries a different obligation.
The W3C's non-text contrast material gives a fail case for exactly this: "The border of the control changes from blue (#4189B9) to green (#4B933A)." The border moved from one color to another, and that change is a fail.
Border-only focus styles are popular on text inputs because the input already has a border. Recoloring it feels like the natural move. But the border sits on the boundary between the control fill and the page background. It has to hold against both sides of that boundary.
The other failure in the same family is the sandwiched inner line. An inner border of dark green, #008000, does contrast with the black border but does not contrast with the blue component background. The inner line is legible against one neighbor and invisible against the other.
If your form uses a border swap, test the new border color against the page background on both sides of the control. Top edge against the label above. Bottom edge against the field below. Left and right against the surrounding card.
There is a carve-out the W3C notes for treatments that are not the indicator itself: "Those treatments can be considered supplemental and do not themselves need to contrast 3:1 against the background." A supplementary tint, a subtle glow, a background wash — those are free. The indicator proper is not.
The practical reading: your focus indicator is the thing that tells a keyboard user where they are. If a border swap is the only signal you ship, the swap itself is the indicator, and it carries the full contrast load. If you add a ring on top of a border change, the ring is the indicator and the border change becomes supplemental.
Pairing a ring with a border change covers both area and contrast. The ring gives area, which serves Case one. The ring's color gives contrast, which serves Case two. The border change gives a secondary cue for people who notice it.
On a checkbox or radio — such as a terms acceptance or marketing consent box — there is no large ring target. The indicator has to fit inside or around a small square or circle. This is where the internal marker pattern earns its keep: a filled dot or check inside the control, colored to contrast with the control's own fill. For a closer look at checkbox colors, see custom checkbox colors.
Remember the sandwich rule. That internal mark sits between the control's border and its fill. It must hold against the fill.
A final trap on this case is how your focus styles respond to mouse and keyboard input. Test both input modes.
If your form uses custom-styled native controls — a styled checkbox wrapping a real input — make sure the visible box and the real input stay in sync. Styling the wrapper while the hidden input holds focus moves the indicator somewhere the user cannot see. Put the focus style on the element that actually receives focus.
Running the three cases against your live form
Open your signup form in a browser. Clear the field autofill. Start at the top.
Tab through. After each stop, ask three questions in order. Is the indicator big enough to find at a glance? Does it contrast with the surface it sits on right now? If I changed the border rather than adding a ring, does that border hold against what surrounds it?
Write down which control fails which case. Failures can cluster on a few controls, so start with the submit button and the terms checkbox.
Fix the failing controls first. If the fix belongs in a shared style, put it there so every form inherits it. Then re-run the sweep at a narrow viewport width and inside any modal.
Then hand the form to someone who does not own it. Ask them to Tab through while you watch. Watch where they pause. Pauses are where your indicator failed.
Common questions
Does a browser's default focus outline already pass?
If you have not modified the default appearance, the user-agent exception covers the contrast requirement. The moment your global reset removes the default outline, you own that obligation.
Is a one-pixel ring ever enough?
Focus Appearance sets a floor, not a ceiling. The minimum applies to the indicator itself, so look away and back: if you have to hunt, draw more.
My focus ring looks fine in the component library. Why does it fail on the page?
Component demos isolate the control. Production puts it on a real surface with a real adjacent background. Evaluate the indicator against that surface, at the real breakpoint, in the real layout.
Do supplementary tints need to pass contrast?
Supplemental treatments do not need to contrast against the background on their own. The indicator itself does. If a tint is your only focus signal, it is the indicator, and it carries the full load.
What about mobile touch focus?
If your form auto-focuses the first field on load, a brief indicator appears against the page background. Test that first paint on a phone. Check the phone layout's own adjacent background, since the surface can change with breakpoints, layouts, and modals.
Our design system resets all outlines globally. Where do we start?
Start by finding the blanket outline removal. Then decide, for each component, whether you restore a default or ship your own ring. Apply the three cases to every control you ship a custom style for.
Who should sign off on the final state?
Ask your accessibility lead, who holds that decision, and get a keyboard pass from someone outside the team.