Skip to content

fix(a11y): web standards pass — valid HTML, meta, and a11y fixes - #50

Merged
yungsamd17 merged 1 commit into
mainfrom
fix/web-standards-pass
Oct 27, 2026
Merged

yungsamd17 merged 1 commit into
mainfrom
fix/web-standards-pass

Conversation

@yungsamd17

@yungsamd17 yungsamd17 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Summary

A web-standards pass: every page now validates cleanly against the W3C HTML checker, plus meta and accessibility hardening.

  • Moved stray <script> tags that rendered after </html> back into the document body (BaseLayout, tool pages, /design); extracted /design inline script into src/scripts/design.ts.
  • Fixed invalid content models: <div> children of <button>/<label> (ColorField swatch, icon-maker shape/checkbox, /design checkbox) converted to <span> with matching CSS.
  • Removed invalid background: 0.25s ease swatch CSS by gating swatch rendering on a swatch flag.
  • Added <meta name="color-scheme" content="dark"> and <meta name="referrer" content="strict-origin-when-cross-origin"> to BaseHead.

Testing

  • npm run build succeeds (all 12 routes)
  • npx astro check — 0 errors, 0 warnings
  • W3C validator — 0 errors on all 12 built pages
  • Lighthouse accessibility / best-practices / SEO = 1.0

Built with Beam Free & DeepSeek V4.1 Flash Free in OpenCode harness, via T3 Code.

@github-actions

Copy link
Copy Markdown

✅ PR Checks passed

Typecheck (npx astro check) and production build both green.

@yungsamd17
yungsamd17 merged commit 7cdff28 into main Oct 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant