fix(z-toast-notification): add ARIA live region for status messages#628
Open
ada-workbackai wants to merge 1 commit intomasterfrom
Open
fix(z-toast-notification): add ARIA live region for status messages#628ada-workbackai wants to merge 1 commit intomasterfrom
ada-workbackai wants to merge 1 commit intomasterfrom
Conversation
Adds role="status", aria-live="polite", and aria-atomic="true" to the toast notification component to ensure dynamic status messages are announced to screen readers. This fixes WCAG 4.1.3 (Status Messages) Level AA violations where toast notifications appeared dynamically but were not programmatically determinable as status messages.
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.
Summary
Fixes WCAG 4.1.3 (Status Messages) by adding ARIA live region attributes to the
z-toast-notificationcomponent.Issue: The email verification toast notification displayed after registration uses a custom
<z-toast-notification>web component that lacks ARIA live region properties. The message appears dynamically but is not programmatically determinable as a status message, preventing screen readers from announcing it.Solution: Added
role="status",aria-live="polite", andaria-atomic="true"attributes to the Host element in the toast notification component.Changes
src/components/z-toast-notification/index.tsxrole="status"- Identifies the element as a status messagearia-live="polite"- Announces changes when the user is idlearia-atomic="true"- Announces the entire message as a single unitTest Plan
Evidence
View before/after screenshots and full audit details:
https://app.workback.ai/dashboard/issue/5034/
WCAG Reference:
4.1.3 Status Messages (Level AA)