0.18.2
Kbd redesigned as a key cap, and fixes for DataTable row clicks, Switch and the Schedule now label
Kbd reads like a physical key: larger type at every size, a regular weight and a visible light-mode fill. DataTable row clicks now work inside Tabs panels and dialogs, and ignore text selections and menus a cell opens. A neutral Switch fills green when checked, and the Schedule's now label stays inside the grid.
Spotlight
Keys that read like keys
Each size now steps the type by one Tailwind step: sm 12px for a key inside a Button or a search field, md 14px in body copy, lg 16px. The default key cap gets a visible fill in light mode, a regular weight and a 1px shade along its bottom edge.
Changes
- changed1
- Kbd#302
Kbdis redesigned as a key cap: one type step larger per size (12/14/16px), regular weight, a visible fill in light mode, a softer label and a shaded bottom edge. The API is unchanged - fixed4
- Switch#300
A checked
color="neutral"Switch fills green instead of rendering white on white in dark mode - Schedule#303
The now-cursor label stays inside the time grid near
startHour/endHourinstead of being clipped and scrolling the view - DataTable#305
onRowClickfires when the table sits inside an element with arole(a Tabs panel, a dialog), and a click on a cell'srole="img"orprogressbarcontent is no longer dropped - DataTable#305
A click inside content a cell opens elsewhere on the page (its own Menu or Dialog), or the click that ends a text selection, no longer fires
onRowClick