Feedback
Sheet
A sheet holds a short task over the page, such as adding an entry at the current time, without leaving it: it rises from the bottom on phones and opens from the side on wide windows.
In kanso-ui as Sheet
Accessibility
role="dialog"witharia-modal="true"andaria-labelledby(the title).- Focus moves to the first control when it opens, stays inside while it is open, and returns to the control that opened it (Add something) when it closes.
- Dragging is never the only way (WCAG 2.5.7): Close, Escape and the scrim close it too. The handle is decorative (
aria-hidden); Close does its job for keyboards and screen readers. - The kind switch is a group named "Kind" (
role="group"), witharia-pressedon each segment. - Targets are at least 48 px on phones.
- Contrast:
inkonsurfaceis 17.4:1 in light and 14.4:1 in dark; field labels inink-muted6.7:1 and 8.1:1; the field border and the handle inoutline3.5:1 and 5.1:1 on surface;on-inkonink16.7:1 and 15.9:1.