Repository navigation
fix(a11y): improve WCAG compliance across components - #46
Merged
Merged
Conversation
- 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>
✅ Deploy Preview for bholmes ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Deploying bholmesdev with
|
| Latest commit: |
396086f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://9faeea63.bholmesdev.pages.dev |
| Branch Preview URL: | https://fix-accessibility-audit-wcag.bholmesdev.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)
LikeButton.astroaria-label="Like this post"andaria-pressedstateTOC.astroaria-label="Table of contents"andaria-expandedstateSerious (WCAG 1.1.1 - Non-text Content)
blog/[...slug].astroWhiteboard.astroaria-label,role="img", and fallback textModerate (WCAG 4.1.2)
about.astroaria-describedbyfor screen reader usersWhat Was Already Good ✅
lang="en"attribute on<html>elementsr-onlyclass for visually hidden texttitleattributesaria-controlsandaria-labeloutline: noneremoving focus indicatorsTesting Recommendations
aria-expandedandaria-pressedstates are announcedThis PR was generated with Warp.