bug(a11y): section labels and helper text ("optional", "FILE", "MORE DETAILS") fail contrast #93
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: High — accessibility failure (WCAG SC 1.4.3)
Card section labels and form helper text use a very light gray that fails contrast requirements on white and near-white backgrounds.
Affected elements:
(optional)subtextFILEsection headingMORE DETAILSaccordion labelWHO & WHEN,DESCRIPTION,TRANSCRIPTIONsection labelsNote: WCAG allows large text (≥18pt or ≥14pt bold) a lower threshold of 3:1. However these labels are small (≈11–12px uppercase tracking), so the 4.5:1 standard applies.
Fix
Replace the current light gray on these labels with
#615B66(Granite Gray, 5.9:1 on white).In Tailwind: change
text-gray-400→text-gray-500(#6B7280, 4.6:1) as the minimum, or add atext-granitetoken for#615B66.For
(optional)specifically, consider whether the label is even needed — if the entire form is optional-by-default (fields are all optional), a single note at the top of the form ("All fields are optional") is cleaner than repeating(optional)on each section.Dark mode fix: On dark backgrounds the current gray is adequate (~4.6:1). Apply the fix only in light mode via
light:text-gray-500 dark:text-gray-400or a semantic token.