Dev.to WebDev 🛠 Dev 👁 0 📖 6 min read

100/100 on Lighthouse, 21 Errors on axe: A friendly accessible roast of The Startup Café ☕

There are three kinds of lies: lies, damned lies, and Lighthouse 100/100 scores. When you run Google Lighthouse on The Startup Café, the dashboard looks like a startup founder's dream pitch deck: Performance: 92-96

100/100 on Lighthouse, 21 Errors on axe: A friendly accessible roast of The Startup Café ☕

There are three kinds of lies: lies, damned lies, and Lighthouse 100/100 scores.

When you run Google Lighthouse on The Startup Café, the dashboard looks like a startup founder's dream pitch deck:

  • Performance: 92-96
  • Accessibility: 100
  • Best Practices: 100
  • SEO: 100
  • Agentic Browsing: 3/3

Green circles everywhere. Champagne time, right?

Except if you close your mouse (not your mouth), turn on a screen reader, or open axe DevTools, the party ends pretty quickly. Because The Startup Café's whole motto is "No gatekeeping. No pretending to have it all figured out. Honest feedback always", I decided to take them at their word and run a real-world audit on their site.

Spoiler: First, I dislike spoilers, but this isn't the subject here; the codebase is actually super clean-but a few classic traps slipped past Lighthouse. Let's grab a coffee (a tea for me) and fix them together.

1. Credit where credit is due (The good stuff)

Before roasting anything, let's acknowledge that whoever built this site actually cares about semantics-way more than 90% of SaaS landing pages out there:

  • The burger button speaks ARIA: Both aria-expanded (dynamically toggled) and aria-controls="site-nav" are present and properly wired.
  • Reduced motion: The infinite marquee properly respects @media (prefers-reduced-motion: no-preference) and stops cleanly when prefers-reduced-motion: reduce is enabled.
  • Native FAQ accordions: Built with native <details> and <summary> elements rather than div-soup accordions.
  • Decorative arrows: Arrows inside CTAs are properly hidden from screen readers (<span aria-hidden="true">→</span>).
  • Structured Data architecture: Splitting Organization + WebSite in the layout and WebPage + FAQPage + HowTo in <main> linked via @id is clean and valid.

Just for that..
Thank you Jesus meme

2. Color Contrast: WAVE (3 Errors) vs. axe DevTools (21 Errors)

Split-screen screenshot showing Lighthouse reporting a 100 Accessibility score on the left, while axe DevTools on the right detects 21 serious color contrast issues on the exact same page.

How can one tool give you a gold medal while another flags 21 serious errors on the exact same URL?

Liar meme

Simple: Lighthouse only checks basic text-on-solid-background pairs, whereas axe DevTools actually computes layered backgrounds, opacities, and inherited tokens.

The best part? All 21 errors come from just 3 CSS color variables in :root reused across the site (WCAG AA requires a minimum 4.5:1 ratio for normal text):

  1. The "Too-Light Espresso" Orange (--orange / --orange-deep): Used on .kicker labels ("The regulars", "On the menu", "Three steps", "Good to know"), the "Apply to join →" anchor link under "Pull up a chair", and footer headings ("The Café", "Get in touch"). Against the cream background (#FDF6E9 / #FAF3E8), the ratio falls below 4.5:1.
  2. The "Latte Foam" muted text (--text-muted / --ink-soft): Affects the main navbar links (About, How it works, FAQ, Contact), every label inside the Hero "Today at the Café" card, section subtitles, and the "Ask us a question" link.
  3. White text on Bright Orange (.btn-primary): White text (#FFFFFF) on bright orange (#EA580C / #E85D04) sits around 3.5:1 – 4.1:1, falling short of 4.5:1.
  4. Card Step Numbers: In "Who sits at the table", the numbers are very faint against the card background. Even though they use aria-hidden="true", darkening them slightly improves visual legibility.

Fix:
Darken --orange-deep (e.g., around #B84308) and --text-muted in :root. For .btn-primary, either darken the orange background or switch the button text to dark espresso brown (#1F1610), which achieves high contrast while keeping the warm café vibe.

3. Keyboard navigation: Escape rooms & Phantom focus

A. Missing Focus Trap on Mobile Menu

Open the mobile navigation drawer and hit Tab a few times.
Congratulations: your focus just escaped the menu (run focus, run!) and is now wandering blindly through the content behind the dark overlay.

Fix:
Since you're on React 19 / Next.js App Router, you don't even need an external library. Apply the native HTML inert attribute to <main> and <footer> while the mobile menu is open, ensure the Escape key closes the menu, and return focus to button[aria-controls="site-nav"]. (I wrote a full breakdown on this pattern here: Saving Private Burger: Building a Truly Accessible Mobile and Desktop Menu - dev.to).

B. "Skip to Content" Skips.. nowhere

Clicking the skip-link nudges the scroll slightly, because <main id="main"> sits right under the header and doesn't have tabindex="-1". As a result, keyboard focus stays stuck in the navbar (not in the washing machine, at least that is a gain).

Fix:

<main id="main" tabindex="-1">
#main:focus {
    outline:none;
}

C. Invisible Focus Rings on Bottom CTAs

In the final "Grab a coffee and share what you are building" section, tabbing onto "Apply to join" and "Ask us a question" gives zero visual feedback (:focus-visible is missing).
Keyboard users shouldn't have to guess where their cursor landed, or you can name this game "CursorGuessr", but it ain't that funny.

4. Screen Reader & HTML Semantics

Browser DevTools DOM inspector showing the .ticker-track container with two identical unordered lists (ul) side by side, neither have aria-hidden="true"

A. The Groundhog Day Marquee

To make the infinite CSS marquee loop smoothly without gaps, .ticker-track duplicates the <ul> of community tags:

<div class="ticker-track">
    <ul><!-- 8 items --></ul>
    <ul><!-- same 8 items --></ul>
</div>

Right now, neither list has aria-hidden="true". So screen readers announce the exact same 8 buzzwords read aloud twice in a row. Just add aria-hidden="true" to the second <ul> clone. Problem solved.

B. CSS ::before counters on <li> with list-style:none ("How to join")

Unlike the other sections (which properly use <span aria-hidden="true"> for decorative numbers), "How to join" uses CSS ::before counters on with list-style: none.

  • In VoiceOver (Safari), list-style: none strips the list semantics completely and decides "Guess this isn't a list anymore!".
  • Screen readers also read ::before text out loud, mashing the step number directly into the <h3> title.

Fix: Either use <span aria-hidden="true">01</span> like the other sections, or add role="list" to the <ol>.

C. Quick note on navigation aria-label

<nav id="site-nav" class="nav" aria-label="Main"> is valid and avoids saying "Main navigation navigation" (which happens if you include the word "Navigation" in the label).
However, aria-label="Primary" is slightly clearer if a footer navigation is added later.

5. Form Accessibility on /join

The Startup Café join application form showing no asterisks on required fields, annotated with a humorous note: "We don't mark required fields with an asterisk because that's not in line with the startup spirit."

On /join, almost every field has required in the HTML, except the form uses novalidate (handled via React state) and zero visual indicators. If you're using a screen reader, you have no idea which inputs are mandatory until you hit "Send application" and get yelled at by validation errors.

Fix:
Add a simple line at the top ("All fields are required unless marked optional") and aria-required="true" on mandatory inputs. Also, consider moving the DEV Code of Conduct link outside the checkbox <label> so tapping the label on mobile doesn't accidentally open an external tab when someone just wants to check the box.

That aint right friend, im sorry meme

6. Bonus : Tiny tweaks for Schema.org & Security

  • Logo format in JSON-LD: Organization.logo points to icon.svg. Schema.org allows SVGs, but Google Rich Results strictly demands a raster image (PNG, JPEG, or WebP, minimum 112x112px).
  • Connect the graph: Add "isPartOf": { "@id": "https://thestartupcafe.vercel.app/#webpage" } inside FAQPage and HowTo so they're tied directly to the homepage node.
  • CSP & Accessibility page: Adding a basic Content-Security-Policy header in next.config.ts and adding a short /accessibility statement page in the footer (labelled "Accessibility: Non compliant" or "Accessibility: Partially compliant") will level up both security and trust. An audit will need to be conducted.

Tl;DR checklist for the next coffee break

  • [ ] Darken --orange-deep, --text-muted, and .btn-primary contrast (>= 4.5:1)
  • [ ] Add inert on <main>/ <footer> + Escape handler when mobile menu is open
  • [ ] Add tabindex="-1" on #main for the skip-link
  • [ ] Add aria-hidden="true" on the duplicated <ul> in .ticker-track
  • [ ] Replace ::before numbers in "How to join" with <span aria-hidden="true">
  • [ ] Add aria-required="true" + required field notice on /join
  • [ ] Switch Organization.logo from .svg to .png in JSON-LD

Huge kudos to the team behind The Startup Café—the foundation is fast, clean, and thoughtfully built. Hopefully this helps push real-world accessibility to match that 100/100 Lighthouse score!

This article is formatted with AI assistance based on the elements I provide (manual audit, code inspection, and screenshots). I draft the basic structure, code, and content, and the AI helps me polish the presentation.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.