06Accessibility · Chrome extension
Focus Lens
See a page the way a keyboard does
A Chrome extension and an installable demo, built from one codebase, that numbers every tab stop on a page, draws the path between them and points at where keyboard and screen reader users get stuck — focus traps, unnamed controls, failing contrast and removed focus rings.

Automated checkers catch contrast and missing landmarks, but they miss the problems that stop a keyboard user cold — a chat widget that traps focus, or a field whose only label is its placeholder. I wanted a tool that makes those visible on the page itself, with a fix for each one.
- 01Finds keyboard traps, missing accessible names, placeholder-only labels, text contrast failures, positive tabindex jumps, hidden focus styles, unreachable controls and skipped headings.
- 02Every issue explains what goes wrong for a person, what to change, a code snippet where it helps and a “Show on page” button.
- 03Reports export as Markdown or JSON, or copy as a ready-to-paste GitHub issue or checklist.
- 04The demo pairs the panel with a deliberately broken page: fix each flaw and watch the audit change.
- D-01
Find traps by asking the page
Static analysis cannot see a keydown handler that wraps focus, and a content script cannot press Tab. So the audit focuses each stop, sends it a synthetic Tab and follows wherever the page’s own script moves focus, then restores focus and scroll when it is done.
Trade-offThe audit briefly runs the page’s own code, but it finds a trap that axe-core misses on the same page — and an end-to-end test checks both tools against it.
- D-02
One panel, two sources
The report panel talks to an interface with four methods. The demo audits a sample page in an iframe; the extension sends messages to a content script in the active tab. Everything above that line is shared code.
Trade-offThe engine had to work across documents, which meant replacing instanceof checks that break in frames.
- D-03
Contrast fixes that keep the brand
Suggestions only move the lightness of the more saturated colour, so an orange button gets a deeper orange rather than grey. Ratios are rounded down, so 4.499:1 reads as a fail.
Trade-offThe suggestion is not always the closest passing colour mathematically, but it is one a designer would accept.
- Automated checks find roughly a third of real accessibility problems; this does not replace testing with a keyboard and screen reader.
- It reads same-origin stylesheets only and does not look inside cross-origin iframes or judge contrast over images.