Skip to content

v1.2.2

Latest

Choose a tag to compare

@github-actions github-actions released this 10 Sep 18:04
dfb2509

Overview

🔧 Bug Fixes

  • createFilter: track reactive keys (#982)
  • useTheme: stop emitting element-level color on [data-theme] (#982)
  • Toggle: emit native disabled on the default button host (#985)

Patch Changes

  • #982 09a62d7 Thanks @johnleider! - fix(createFilter): track reactive keys

    keys now accepts a ref or getter (MaybeRefOrGetter<readonly string[]>), so changing which fields are searched re-runs the filter. Passing a plain string[] is unchanged.

  • #982 09a62d7 Thanks @johnleider! - fix(useTheme): stop emitting element-level color on [data-theme]

    ThemeAdapter.generate() still writes custom properties and :root { color-scheme }. It no longer sets color: var(--*-on-background) on the theme selector — applying tokens is Paper's job. Unstyled hosts that relied on that inherited color need to set it themselves.

  • #985 8396668 Thanks @johnleider! - fix(Toggle): emit native disabled on the default button host

    Disabled Toggle.Root now sets the HTML disabled attribute when as is "button" (the default) and omits aria-disabled on that path. Non-button hosts still get aria-disabled.