Search

Explore Fieldwork

Writing / Issue log

Accessibility bugs are product bugs

An automated WCAG audit on a Medusa v2.18.0 admin dashboard caught two HTML shell defects in separate packages: a missing lang attribute and blocked user zoom.

Conceptual dark-glass editorial artwork of a curved horizontal glass lens widening a thin acid-lime beam into a broader light band, with a small amber notch on the upper bevel.
Conceptual illustration of document language metadata and unrestricted viewport scaling.

Login-shell accessibility defects can survive functional smoke tests because end-to-end suites check whether inputs submit and routes load, not what the outer HTML wrapper tells assistive tools.

During an axe-core 4.10 WCAG 2.1 AA audit against a live Medusa v2.18.0 admin dashboard, two structural violations surfaced immediately on the unauthenticated login page. Both broke baseline web standards, and each lived in a different upstream package.

Missing page language despite dynamic text direction

The rendered document opened without a lang attribute:

HTML
<html dir="ltr" class="light">

Medusa's runtime i18n provider already updated dir dynamically for right-to-left locales, yet omitted lang on the same root element. Without lang, screen readers cannot reliably select pronunciation rules or switch voice profiles when an operator works in a localized admin interface, violating WCAG 3.1.1 (Language of Page, Level A).

A viewport meta tag that disabled pinch-to-zoom

The generated admin shell also shipped a viewport meta tag that blocked scaling:

HTML
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />

Setting user-scalable=no prevents low-vision users from pinching to zoom or magnifying dense forms and tables on mobile or high-DPI screens, failing WCAG 1.4.4 (Resize Text, Level AA).

Both violations arrived in the same login HTML response, yet they originated in two separate upstream packages: @medusajs/dashboard (i18n-provider.tsx) updated <html> attributes at runtime without setting lang, while @medusajs/admin-bundler (write-static-files.ts) generated the static index.html template with the zoom-locking <meta name="viewport"> tag.

Upstream merges and what remains unverified

I filed both reports on 14 August 2026 as Medusa #16445 for the missing lang attribute and Medusa #16446 for the viewport zoom lock. Maintainers merged fixes to develop on 15 August 2026 in PR #16450 and PR #16449, closing both issues as completed.

A merge to develop marks the upstream fix, not proof of a deployed rollout. I have not yet mapped which @medusajs/dashboard and @medusajs/admin-bundler releases first shipped these commits or re-run browser zoom and screen-reader checks against our upgraded admin environments.

Public sources

  1. Medusa #16445github.com
  2. PR #16450github.com
  3. Medusa #16446github.com
  4. PR #16449github.com

Share this article

Continue reading

What my dot actually does ↗

All writing ↗