fix(z-button): add opacity to disabled state for WCAG 1.4.1#625
Open
ada-workbackai wants to merge 1 commit intomasterfrom
Open
fix(z-button): add opacity to disabled state for WCAG 1.4.1#625ada-workbackai wants to merge 1 commit intomasterfrom
ada-workbackai wants to merge 1 commit intomasterfrom
Conversation
Add opacity: 0.6 to all disabled button variants (primary, secondary, tertiary) to provide a non-color visual indicator of the disabled state. This addresses WCAG 1.4.1 (Use of Color) by ensuring button state changes are not conveyed through color alone. Users who cannot perceive color differences can now distinguish disabled buttons through the reduced opacity.
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.4.1 (Use of Color) by adding opacity to disabled button states across all variants.
Issue: Button state changes (enabled/disabled) were indicated solely through color changes (red border → grey border), creating a barrier for users with color vision deficiencies.
Solution: Added
opacity: 0.6to all disabled button variants (primary, secondary, tertiary) in the z-button component. This provides a visual indicator independent of color that clearly distinguishes disabled buttons.Impact
This fix applies to all z-button components across Zanichelli applications, including:
Users with color vision deficiencies, low vision, or viewing content in monochrome will now be able to identify disabled buttons without relying on color perception.
Test Plan
Evidence
View before/after comparison and full audit details:
https://app.workback.ai/dashboard/issue/3665/
WCAG Reference:
1.4.1 Use of Color (Level A)