Skip to content

fix(z-input): increase password toggle button size to meet WCAG 2.5.8#617

Open
ada-workbackai wants to merge 1 commit intomasterfrom
workbackai/fix/wcag-2.5.8-password-toggle-target-size
Open

fix(z-input): increase password toggle button size to meet WCAG 2.5.8#617
ada-workbackai wants to merge 1 commit intomasterfrom
workbackai/fix/wcag-2.5.8-password-toggle-target-size

Conversation

@ada-workbackai
Copy link
Copy Markdown
Contributor

Summary

Fixes WCAG 2.5.8 (Target Size - Level AA) by increasing the password visibility toggle button from 18×18px to 24×24px.

Issue: The password visibility toggle button (eye icon) was only 18×18 CSS pixels, falling 6px short in both width and height of the WCAG 2.5.8 minimum target size requirement of 24×24px. This made it difficult for users with motor disabilities to reliably toggle password visibility in login forms.

Solution: Increased the button size to 24×24px by adding specific CSS custom properties (--z-icon-width and --z-icon-height) to the .toggle-password-icon selector in styles-text.css.

Test Plan

  • Verified button dimensions are now 24×24px (previously 18×18px)
  • Tested keyboard navigation with Tab key - button receives focus correctly
  • Tested keyboard activation with Enter key - button toggles password visibility
  • Verified aria-label is present ("mostra password" / "nascondi password")
  • Confirmed visual appearance is consistent with design system
  • Ran stylelint - no linting errors
  • Built component library successfully

Evidence

View before/after screenshots and full audit details:
https://app.workback.ai/dashboard/issue/2849/


WCAG Reference:
2.5.8 Target Size (Minimum)

The password visibility toggle button was 18×18 CSS pixels, falling 6px
short of the WCAG 2.5.8 minimum target size requirement of 24×24px.

This change increases the button size to 24×24px by setting CSS custom
properties --z-icon-width and --z-icon-height on the .toggle-password-icon
button element.

Users with motor disabilities can now reliably toggle password visibility
in login forms without difficulty.
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