Skip to content

fix(a11y): improve WCAG compliance across components - #46

Merged
bholmesdev merged 1 commit into
mainfrom
fix/accessibility-audit-wcag-compliance
Feb 7, 2026
Merged

bholmesdev merged 1 commit into
mainfrom
fix/accessibility-audit-wcag-compliance

Conversation

@bholmesdev

Copy link
Copy Markdown
Owner

Accessibility Audit Fixes

Summary

This PR addresses accessibility issues identified during a WCAG compliance audit, improving screen reader support and overall usability for users with disabilities.

Issues Fixed

Critical (WCAG 4.1.2 - Name, Role, Value)

Component Issue Fix
LikeButton.astro Button had no accessible name Added aria-label="Like this post" and aria-pressed state
TOC.astro Toggle button had no accessible name Added aria-label="Table of contents" and aria-expanded state

Serious (WCAG 1.1.1 - Non-text Content)

Component Issue Fix
blog/[...slug].astro Blog header images had empty alt text Now uses post title for meaningful alt text
Whiteboard.astro Canvas element lacked fallback Added aria-label, role="img", and fallback text

Moderate (WCAG 4.1.2)

Component Issue Fix
about.astro Hidden checkbox toggle lacked context Added aria-describedby for screen reader users

What Was Already Good ✅

  • lang="en" attribute on <html> element
  • Proper use of sr-only class for visually hidden text
  • Icons with title attributes
  • Form inputs with labels (Newsletter component)
  • Navigation with aria-controls and aria-label
  • No outline: none removing focus indicators
  • Proper heading hierarchy

Testing Recommendations

  • Test with VoiceOver (macOS) or NVDA (Windows)
  • Verify keyboard navigation works for all interactive elements
  • Check that aria-expanded and aria-pressed states are announced

This PR was generated with Warp.

- LikeButton: Add aria-label and aria-pressed for screen reader support
- TOC: Add aria-label, aria-expanded for accessible toggle state
- Whiteboard canvas: Add aria-label, role='img', and fallback text
- About page toggle: Add aria-describedby for context
- Blog images: Add meaningful alt text using post title

Addresses WCAG 4.1.2 (Name, Role, Value), 1.1.1 (Non-text Content)

Co-Authored-By: Warp <agent@warp.dev>
@netlify

netlify Bot commented Feb 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for bholmes ready!

Name Link
🔨 Latest commit 396086f
🔍 Latest deploy log https://app.netlify.com/projects/bholmes/deploys/6984ff39b6f01500082d7152
😎 Deploy Preview https://deploy-preview-46--bholmes.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying bholmesdev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 396086f
Status: ✅  Deploy successful!
Preview URL: https://9faeea63.bholmesdev.pages.dev
Branch Preview URL: https://fix-accessibility-audit-wcag.bholmesdev.pages.dev

View logs

@bholmesdev
bholmesdev merged commit a6c5106 into main Feb 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant