Skip to content

v0.15.0

Choose a tag to compare

@ariser ariser released this 09 Oct 18:07
· 44 commits to main since this release
00d99f9

What's Changed

  • chore(deps-dev): bump the dev-dependencies group with 3 updates by @dependabot[bot] in #1247
  • fix(TextAreaField): use change event for value updates by @fallintoplace in #1243
  • feat(env): Canary Releases by @XOP in #1242
  • feat(Icon): add sidebar icons by @DreaminDani in #1253
  • feat(Logos): add the Amazon S3 Tables for Iceberg logo by @amychen1776 in #1251
  • feat: TextTruncate by @XOP in #1250
  • fix(Dropdown): keep items at full height when the menu scrolls by @ariser in #1256
  • fix(Dropdown): forward the ref of Dropdown.Item by @ariser in #1257
  • fix(Dropdown): keep menus 8px from the viewport edges instead of 100px by @ariser in #1260
  • fix(a11y): Table sortable keyboard operable by @XOP in #1241
  • fix(Tooltip)!: forward the ref and props of Tooltip.Trigger with asChild by @ariser in #1258

New

TextTruncate (#1250)

  • Cuts off a single line of text with an ellipsis, at the end or in the middle. ellipsisPosition="middle" keeps file extensions and ID suffixes visible.
  • While the text is cut off, the full text shows in a tooltip on hover. The text also becomes a tab stop that shows the tooltip on keyboard focus. Inside a button, link, tab, menu item or option it adds no tab stop.
  • It replaces EllipsisContent, which is now deprecated.

⚠️ Upgrade notes

Tooltip.Trigger asChild forwards its ref and props (#1258)

  • EllipsisContent component={Tooltip.Trigger} inside your own Tooltip now gets the trigger's ref. When its text is cut off, it shows its own tooltip in place of yours.
  • If the trigger has no text that can be cut off (a button, a badge), use Tooltip.Trigger alone.
  • If it has, put Tooltip.Trigger asChild around TextTruncate showTooltip={false}.

Sortable Table headers are buttons (#1241)

  • Headers of sortable or clickable columns render a <button>, and aria-sort is on the <th>. Their labels must not contain interactive content.
  • The accessible name of a sorted header no longer ends in "arrow-down" or "arrow-up". Tests that query a header by that name must change, for example to check aria-sort.
  • A focused sortable header shows a focus ring. Headers marked isSortable on a table without onSort no longer show a pointer cursor.

Other changes in behavior or visuals

  • Dropdown.Content keeps 8px from the viewport edges instead of 100px, so long menus are taller before they scroll (#1260).
  • A Dropdown menu that is taller than the space available scrolls, and its items keep their full height (#1256).
  • TextAreaField now calls onChange when an onInput prop is passed, including onInput={undefined} (#1243).

Deprecated

  • EllipsisContent and EllipsisContentProps: use TextTruncate (#1250). They keep working unchanged.

Full Changelog: v0.14.0...v0.15.0