Skip to main content

Command Palette

Search for a command to run...

The Developer’s Audit for A11Y

A11Y Part 3

Updated
4 min read

In Part 2, we looked at the science of sight and accessible palettes; today, we look at the execution. An accessible design is only as good as the code supporting it. If the underlying structure is brittle, the door remains locked for 16% of your users.

Here is how to audit your site for the traffic waiting to get in.

1. The "No-Mouse" Challenge: Keyboard Navigation

For users with mobility issues, tremors, or chronic pain, the mouse is a barrier. They rely on the Tab key or assistive switches.

  • Visible Focus States: Never use outline: none; in your CSS without providing a high-contrast replacement. If a user tabs to a button, they need a "Focus Ring" to see where they are.

  • Tab Traps: A common failure point in development is the modal or mobile menu. Ensure users don't get "stuck" inside a pop-up with no way to exit via keyboard.

  • Logical Flow: Your tabindex should follow the visual path of the page. If the cursor jumps from the header to the footer and back to the sidebar, the site is functionally broken for keyboard users.

2. The Code Behind the Vision

Effective accessibility requires moving beyond the visual layer into the document structure.

  • Aria-Labels for "Silent" Icons: If you have a button that is simply a "Magnifying Glass" icon, a screen reader will likely announce it as "Button, unlabelled." By adding aria-label="Search", you give that element a clear purpose. If the icon has no purpose, hide it with aria-hidden=”true”.

    • Image shows aesthetic icon hidden with aria-hidden attribute for assistive technology
  • Scalable Units (The rem Fix): While we discussed why text needs to scale in Part 2, the developer’s job is the math. Use rem for font sizes so that when a user changes their browser's root font size, your UI responds fluidly. Reference the Mozilla Accessibility Guidelines for best practices on building these responsive structures.

  • Semantic HTML: Use <button> for actions and <a> for navigation. Using a <div> with an onClick event might look the same, but it is invisible to assistive technologies unless you manually add the necessary ARIA roles.

3. Your Professional Audit Toolkit

Stop guessing and start validating. Leverage these industry-standard tools to automate your workflow and catch essential accessibility errors instantly:

  • WAVE Evaluation Tool: The gold standard for browser-based audits. It provides a visual overlay of your live site, flagging missing alt-text, contrast failures, and structural issues.

  • BrowserStack WCAG Guide: An excellent resource for running guided manual tests to ensure your site meets specific compliance levels.

Check issue with WAVE

WAVE evaluation tool points out that adjacent links go to the same url on harshnahaswani.com. It also shows that the site has no other issues and has 10 out of 10 AIM score

Tabbed navigation inspection with WAVE

WAVE evaluation tool shows the keyboard navigation path for harshnahaswani.com

4. The Pro Powerhouse: Firefox Accessibility Inspector

Firefox has arguably the most powerful built-in tool for accessibility testing. By right-clicking any element and selecting "Inspect Accessibility Properties," you can verify your work in real-time.

  • The Tree View: See exactly what a screen reader "sees" before you ever publish your code.

  • Color Blindness Simulation: Filter your live site through various lenses to ensure the colors hold up in production environments.

    • Image shows firefox's accessibility tools with simulation options for Protanopia (red-blind),  Deuteranopia (green-blind), Tritanopia(blue-blind),  Achromatopsia (no color), and  no contrast.
  • Contrast Warnings: Firefox will automatically flag elements that fail the AA (4.5:1) or AAA (7:1) thresholds, highlighting the specific line of CSS that needs adjustment.

    Image shows Firefox browser's accessibility tools flagging warning for low contrast, and missing tab navigation for various text nodes.

Conclusion: Opening the Door

Accessibility isn't a "one-and-done" checklist; it is a fundamental shift in how we build for the web. By mastering these tools—from the WAVE extension to the Firefox Inspector—you aren't just "fixing bugs." You are ensuring that the 16% of users who have been standing at the door can finally walk in.

The web was built to be universal. As developers, it is our job to make sure it stays that way.

This article was copyedited with Gemini.

Unlocking the 16%: A Guide to Designing and Building a Universal Web

Part 1 of 3

1.3 billion people(16% of the world) are barred from digital spaces. Unlocking the 16% moves from the business ROI of "The Purple Pound" to the technical math of IBM palettes and the Firefox Inspector to building a web that truly works for everyone.

Up next

The Science of Sight: Colors, Fonts, and the IBM Standard

A11Y Part 2