You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 10c2d49
Browse filesBrowse the repository at this point in the historyBrowse files
fix(CheckboxInput): a label-hidden checkbox keeps its composer's row under a finger
The 44 px row floor and the 44 × 44 px target applied to every CheckboxInput,
including the label-hidden ones other components embed: on a touch screen a
MultiSelector option grew from 36 to 56 px, a compact table selection row
from 33 to 53 px and a Markdown task item from 32 to 52 px, and a 44 px
target would reach into the next, shorter row. Both now apply only to a
labelled checkbox, which is its own row; a label-hidden marker keeps its
24 px coarse-pointer target, as on main. The touch-target spec holds the
three composers below 44 px with a 24 px target. The touchTarget stylesheet
comment no longer names a file this branch doesn't have.
Copy file name to clipboardExpand all lines: .changeset/selection-touch-targets.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,6 @@
2
2
'@astryxdesign/core': patch
3
3
---
4
4
5
-
[fix] On a touch screen, a checkbox and a radio option are now as easy to hit as an iOS control (44 pt). A standaloneCheckboxInput's row is at least 44 px tall, and its target is at least 44 × 44 px, centered on the 20 or 24 px box. Each RadioList row is at least 44 px tall, and the rows touch, so the whole column is target. With a mouse or trackpad the sizes are unchanged. The CheckboxInput `size` docs now give the real box sizes.
5
+
[fix] On a touch screen, a checkbox and a radio option are now as easy to hit as an iOS control (44 pt). A standalone, labelled CheckboxInput's row is at least 44 px tall, and its target is at least 44 × 44 px, centered on the 20 or 24 px box; a label-hidden checkbox inside another component's row (a MultiSelector option, a table selection cell, a task item) keeps that row's height and its 24 px target. Each RadioList row is at least 44 px tall, and the rows touch, so the whole column is target. With a mouse or trackpad the sizes are unchanged. The CheckboxInput `size` docs now give the real box sizes.
Copy file name to clipboardExpand all lines: packages/core/src/CheckboxInput/CheckboxInput.doc.mjs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ export const docs = {
109
109
name: 'size',
110
110
type: "'sm' | 'md'",
111
111
description:
112
-
'The size of the checkbox: a 20 px box for sm (compact layouts), 24 px for md (default). Under a coarse pointer the row is at least 44 px tall and the checkbox target at least 44 × 44 px.',
112
+
'The size of the checkbox: a 20 px box for sm (compact layouts), 24 px for md (default). Under a coarse pointer a labelled checkbox’s row is at least 44 px tall and its target at least 44 × 44 px; a label-hidden checkbox (a marker in another component’s row) keeps its size.',
0 commit comments