File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
libs/components/src/checkbox Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 33 user-select : none;
44 }
55
6+ /**
7+ * We use visibility:hidden instead of display:none to maintain layout space and prevent height shifts.
8+ *
9+ * Per WCAG guidelines:
10+ * - visibility:hidden hides the element visually
11+ * - The indicator component already has aria-hidden="true" for explicit exclusion from accessibility tree
12+ * - This is appropriate because the indicator is purely decorative - the checkbox state
13+ * is properly communicated via the trigger's aria-checked attribute
14+ *
15+ * Sources:
16+ * - https://www.w3.org/WAI/WCAG21/Understanding/
17+ * - https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-hidden
18+ */
619 [data-qds-checkbox-indicator ][data-hidden ] {
7- display : none ;
20+ visibility : hidden ;
821 }
922}
You can’t perform that action at this time.
0 commit comments