Repository navigation
Description
Parent: #2210. Related: #2262 (design decisions on remaining differences from the prototype). Found in the final re-verification of the alignment stack (gh stack #2227).
Context
Studio follows its own rule that every interactive control has a hit area of at least 44×44 px. That is the comfortable touch size (Apple HIG; WCAG 2.5.5 Target Size, Enhanced). WCAG 2.2 AA (2.5.8 Target Size, Minimum) asks for at least 24×24 px.
The design prototype (stacklok/mecatl-prototypes, stack-08) is denser. Several controls ported from it during the alignment kept the prototype's smaller size, so on phones they no longer meet Studio's 44px rule. With a mouse they are fine.
Controls below 44px
| Control | PR | Current hit area |
|---|---|---|
| Phone "Composer options" button | #2253 | 32px |
| Activity toggle on a tool row | #2254 | ~24px |
| Tool-row open button | #2254 | ~20px (also below the WCAG 2.2 AA 24px minimum) |
| Delegation chips | #2254 | ~24px |
| "Raw" arguments toggle | #2254 | 24px |
| Session row ⋯ menu button | #2255 | 28px |
| Canvas Copy / Clear | #2255 | 28px |
| Canvas Preview / Edit | #2255 | 28px |
| Session inspection view switch | #2255 | 28px |
| Starter-prompt chips (older than the stack) | #2252 | ~32px |
Options
- Enforce 44px everywhere. Studio stays consistent with its rule, but phones lose the prototype's density.
- Adopt the prototype's sizes. This is more faithful to the design, but Studio drops its 44px rule, and anything below 24px still has to reach the WCAG 2.2 AA minimum.
- Hybrid (recommended). Keep the prototype's visual size, and enlarge only the hit area to 44px on coarse pointers (
pointer-coarse:), with padding or an invisible pseudo-element. feat(studio): port the prototype's chat transcript and delegation views #2254 already does this for the minimap dashes: a 3px visible mark with a 44px touch area on phones.
Decision needed
Design (prototype owner) chooses option 1, 2 or 3, and states whether the 44px rule stays Studio's standard.
Acceptance (once decided)
- Every control in the table follows the chosen rule. Grep for other compact controls too.
- A browser journey on the mobile project measures the hit area of each listed control, against 44px or the agreed minimum, and fails below it.
- Desktop rendering is unchanged under option 3.
- Before/after screenshots at 390px.
Activity
docs(studio): leave the touch-target rule to #2271