fix(z-input): add visual indicator for radio button selection state#636
Open
ada-workbackai wants to merge 2 commits intomasterfrom
Open
fix(z-input): add visual indicator for radio button selection state#636ada-workbackai wants to merge 2 commits intomasterfrom
ada-workbackai wants to merge 2 commits intomasterfrom
Conversation
Adds an outline to selected radio buttons to provide a non-color visual indicator of the selection state. This ensures users with color blindness or using monochrome displays can distinguish between selected and unselected radio buttons. The outline uses currentColor to match the text color and includes proper handling for disabled states.
Addresses stylelint error requiring lowercase CSS color keywords.
Contributor
Author
|
Fixed stylelint error by changing |
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 1.3.3 (Sensory Characteristics) by adding a visual outline indicator to selected radio buttons that does not rely on color alone.
Issue: Radio buttons use custom styling where the selected state is indicated primarily through color change (blue fill vs. outline only). Users with color blindness may not be able to distinguish between selected and unselected radio buttons.
Solution: Added a 2px outline with 2px offset to selected radio buttons using
currentColor, providing a visual indicator that works independently of color perception. The outline adapts to disabled states appropriately.Test Plan
Evidence
View before/after screenshots and full audit details:
https://app.workback.ai/dashboard/issue/5105/
WCAG Reference:
1.3.3 Sensory Characteristics