Skip to content

fix(z-button): add opacity to disabled state for WCAG 1.4.1#625

Open
ada-workbackai wants to merge 1 commit intomasterfrom
workbackai/fix/wcag-1.4.1-button-disabled-opacity
Open

fix(z-button): add opacity to disabled state for WCAG 1.4.1#625
ada-workbackai wants to merge 1 commit intomasterfrom
workbackai/fix/wcag-1.4.1-button-disabled-opacity

Conversation

@ada-workbackai
Copy link
Copy Markdown
Contributor

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.6 to 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:

  • Registration forms
  • Checkout flows
  • General UI interactions

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

  • Added opacity property to primary variant disabled state
  • Added opacity property to secondary variant disabled state
  • Added opacity property to tertiary variant disabled state
  • Verified CSS syntax
  • Tested that disabled buttons are now distinguishable through reduced opacity

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)

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.
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