|Kit
Changelog

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.

View Kbd
⌘Esc
⌘Esc
⌘Esc

Changes

  • changed1
  • Kbd

    Kbd is 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

    #302
  • fixed4
  • Switch

    A checked color="neutral" Switch fills green instead of rendering white on white in dark mode

    #300
  • Schedule

    The now-cursor label stays inside the time grid near startHour/endHour instead of being clipped and scrolling the view

    #303
  • DataTable

    onRowClick fires when the table sits inside an element with a role (a Tabs panel, a dialog), and a click on a cell's role="img" or progressbar content is no longer dropped

    #305
  • DataTable

    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

    #305

On this page