Reproduce one broken task using only the keyboard, then give your AI coding assistant the relevant markup, styles, event handlers, and expected behavior. Ask for a small correction that follows the project's existing accessible components. Accept the change after you can complete the same task with visible focus, a meaningful navigation order, and a working way out of each popup.
Record the keyboard failure before requesting a fix
I would start with a task such as opening the mobile navigation and following a link. “Make this website accessible” gives the assistant too much room to change unrelated code and too little evidence about the failure.
Use a development or staging copy you're allowed to change. Choose harmless test data and a route that won't place orders, delete records, or send messages when you activate a control. Keep a recoverable version of the component before editing it.
Put the mouse aside. Start from a known point, such as the browser's address bar, and use Tab to move forward and Shift+Tab to move backward. Activate links with Enter and buttons with Enter or Space. For a custom widget, follow the keyboard commands for its intended pattern; a tab list or application menu can use arrow keys within the widget.
Record the page, viewport size, browser and operating system, starting state, exact key sequence, and what happens. Name the control that should receive focus or respond. A useful report says “After opening Products, Tab reaches the page footer without reaching either revealed link.” “The menu feels broken” leaves the assistant guessing.
The target is usable behavior. WCAG 2.2's Keyboard criterion requires keyboard operation without specific timing for individual keystrokes, with an exception for functions that inherently depend on a movement path. Its Focus Order criterion requires a sequence that preserves meaning and operability. That doesn't impose a universal left-to-right order on every layout.
Task-based checking exposes barriers that a polished interface can hide. In AccessibilityChecker.org's June 2026 evaluation of 30 AI tools, 24 required a workaround or prevented completion of at least one core task. One blind evaluator used a single screen reader, browser, and operating system configuration on free or trial accounts. The study measures task friction, not WCAG conformance or the quality of AI-generated code. Its practical lesson here is to check whether someone can finish the action.
Inspect the control and the surrounding behavior
Find the source component responsible for the failure. Include its rendered HTML, relevant CSS, open/close handlers, and the code that moves focus or hides content. The button alone may look correct while a parent removes its focus outline or leaves hidden links reachable.
In Chrome DevTools, open Elements, select the relevant DOM node, then open Accessibility. The tab can be behind the More Tabs button. Chrome's accessibility inspection tools show the element's accessibility tree position, ARIA attributes, and computed accessibility properties. Check the exposed name, role, and focusability; inspect state properties when the component has them.
The selected skip link in the image has a name describing its destination, the role link, and Focusable: true. Your own selection will show different values. These properties help explain what the browser exposes to assistive technology; they don't prove that the link receives Tab focus in the right place or that activating it works. Return to the page to check those actions.
Capture the failure in both collapsed and expanded states. For a dialog, include the opener, initial focus target, close control, and what receives focus after closing. For a responsive navigation, compare the wide layout with the collapsed layout. Share only project-approved code and remove credentials, personal records, and sensitive page content.
Give the assistant a bounded repair request
Use the assistant already approved for your repository. Provide the existing component or design-system pattern it should follow. If the project and permitted changes are still unclear, prepare a website brief for the coding assistant before requesting a patch.
Replace the bracketed fields below with the real details. The Products disclosure is a constructed example of an ordinary show/hide navigation, not an application menu.
Review one keyboard accessibility defect. Don't edit files yet.
Task: open the Products disclosure and follow a revealed navigation link.
Environment: [browser, OS, viewport, route, relevant project versions].
Starting state and exact keys: [reproduction steps].
Actual result: [observed failure and current focus location].
Required result: [reachable controls, activation, open/closed state,
focus order, visibility, and expected behavior when closing].
Relevant files: [component, styles, handlers, existing accessible example].
Constraints: preserve pointer behavior, routes, form behavior and unrelated edits.
Identify the likely cause with file/line evidence. Distinguish observed
behavior from a hypothesis. Prefer native HTML and existing project components.
Don't add positive tabindex values or turn ordinary navigation into an ARIA menu.
List the smallest proposed changes and the keyboard checks needed to accept them.
Ask about unspecified behavior before changing it. Stop for review.
After I approve the proposal, make only that change. Report changed files,
checks actually run, remaining failures, and checks that still need manual work.
Don't publish, merge, or claim WCAG conformance.
Review the diagnosis before allowing edits. Adding an ARIA attribute can change what assistive technology hears while leaving the broken interaction intact. The button role doesn't supply keyboard handling; a native button is the better starting point for an action when it fits the component.
With Copilot, keep human review in the process. GitHub's responsible-use guidance identifies missed problems, false positives, and suggestions that may fail to resolve the reported issue. Ask the assistant to explain how its proposed change addresses your recorded failure, then inspect that explanation against the actual source.
Check that the proposed fix matches the interaction
A missing Tab stop, an invisible focus indicator, and an inescapable popup need different corrections. Choose the branch that matches the reproduction.
| Observed symptom | What to inspect in the proposed change |
|---|---|
| A clickable action is skipped by Tab | Prefer a native button with a meaningful name. Preserve the intended form behavior and verify activation occurs once with either Enter or Space. |
| The control works, but focus disappears visually | Inspect focus styles and clipping. Keep a visible indicator in every relevant state and check whether a sticky header or other content covers the focused control. |
| Focus jumps to an unexpected part of the page | Compare DOM order, visual layout, and scripted focus changes. Remove an unnecessary positive tabindex sequence rather than adding more numbered stops. |
| Hidden navigation links are still reachable | Inspect the actual hiding mechanism and whether the button's expanded state matches the revealed content. Check both open and closed states. |
| A popup strands the keyboard user | Identify whether it's a modal dialog or a disclosure. Verify the appropriate entry, navigation, closing, and return behavior for that pattern. |
For native buttons, Enter and Space already trigger click behavior. Review any added key handler carefully: calling the same action from both a native activation and an extra handler can invoke it twice. Keep links for navigation and buttons for actions.
Don't repair ordering by assigning increasing positive tabindex values across the page. MDN recommends a logical source sequence and avoiding positive values. A value of 0 adds a suitable element to sequential navigation; -1 removes it from that sequence while allowing programmatic focus. Adding Tab stops to every heading and paragraph doesn't fix an unreachable action.
For the Products example, the W3C disclosure pattern uses a button activated with Enter or Space, with aria-expanded matching whether the content is shown. Preserve ordinary links inside the revealed navigation. Don't introduce an application-menu keyboard contract just because the site calls its navigation a “menu.”
A modal dialog has a different contract. The W3C modal dialog pattern moves focus inside, contains Tab and Shift+Tab while open, makes the background inert, and closes with Escape. Initial focus depends on the content and task; a long dialog may need focus at its introductory content. Provide a visible close or cancel control. On closing, focus normally returns to the opener, or to a logical next place if the opener no longer exists or the workflow requires it.
Containing focus in an open modal isn't the same as leaving someone stuck. The No Keyboard Trap criterion requires a keyboard way to leave a component and instructions if that method goes beyond standard exit commands. W3C's Authoring Practices patterns are implementation guidance; the WCAG success criteria define the requirements.
Repeat the task against the changed version
Review the saved change before running it in the approved test environment. Confirm that the assistant hasn't replaced an established component, altered unrelated routes, or weakened existing checks. Keep the original reproduction beside the page.
- Repeat the exact failure path. Start from the same state and use the recorded keys. Verify the expected control receives focus and performs the action once.
- Go backward. Use Shift+Tab through the affected area. Check entry and exit from either direction, including after opening, closing, and reopening the component.
- Watch the focus indicator. Follow it through each state. Focus Visible requires a mode with a visible keyboard focus indicator. Under Focus Not Obscured (Minimum), author-created content mustn't entirely hide the focused component. Check sticky headers and banners at the sizes where the failure occurs.
- Check hidden and modal states. Collapsed content shouldn't leave stray navigation stops. For the modal pattern, verify initial focus, forward and reverse containment, Escape, the visible close control, and the expected return location.
- Check neighboring behavior. Repeat the pointer action and the relevant form or route transition. Test the responsive layout where the component changes shape, and any other supported browser/OS combinations affected by the change.
Run the project's existing automated accessibility checks and relevant tests as a supplement. A clean scan doesn't establish that this task can be completed with a keyboard. Chrome's own guidance separates markup inspection from using the page with a keyboard or screen reader.
If the patch changes a control's name, role, state, or dialog announcements, include a check with the supported browser and screen-reader combination. Record the combination used. Browser resizing alone doesn't test a physical phone or its assistive technology.
Keep the acceptance evidence with the patch
Save the changed version identifier, original steps, expected result, actual result after the change, and the environment used. Include remaining defects and tests that weren't run. A screenshot can show a focus indicator; it can't demonstrate the entire keyboard sequence.
I would accept this task when the recorded failure is resolved, the relevant neighboring behavior still works, and the required manual checks have actual results. A generated checklist with every box marked “passed” isn't evidence that someone performed those checks.
For a complex combobox, grid, editor, or custom dialog, ask an accessibility specialist to review the interaction contract and assistive-technology behavior before release. Keep unresolved work visible. The handoff should say which task now works and which environments were checked, with broader accessibility evaluation tracked separately.

