Skip to content

v0.6.0

Choose a tag to compare

@anthony-liddle anthony-liddle released this 25 Oct 17:56
4a60a4e

Pinned columns that stay pinned, dark sections that reach into menus, and a keyboard path for range selection. No breaking API changes; two visible ones, under Changed.

New

  • Shift+click a row checkbox, or press Shift+Space on a focused one, to set every row from the last checkbox you toggled to the same state. Disabled rows are skipped.

Fixed

  • alwaysVisible columns are pinned: they can't be hidden or moved, and they stay out of the column panel, with single or grouped headers. Reordering the other columns leaves pinned ones where they are.
  • A layout saved before a column was pinned, or by 0.5.1's panel, no longer moves a pinned column or hides it. onVisibleColumnsChange always reports pinned columns as visible.
  • The column panel lists columns in the table's current order, including after a restored layout.
  • .dark on the table's own element switches it to the dark defaults, as on an ancestor.
  • Menus and the column panel copy .dark from the table's section when they open, so they no longer render light inside a dark page section.

Changed

  • Every menu item is 32px tall (plain items were 48px, link items 44px), and every label sits 0.5rem from its icon (link items, submenu triggers and submenu items had 1rem). Open menus look shorter.
  • Table and pagination text take the theme's foreground colour, so text in a .dark section stays readable without a theme. A color you set on a wrapper or on body no longer reaches the cells or a standalone Pagination; set it on .rdt-table or .rdt-pagination, or through --foreground.

Docs

  • Clickable rows: rows don't take focus, so put a link in the row's main cell for keyboard and screen reader users and keep onRowClick as the mouse shortcut. The new Clickable Rows story shows it.