Skip to content

v0.21.1

Choose a tag to compare

@pukhrajp pukhrajp released this 10 Jun 11:27
· 3 commits to main since this release
8c50793

@tinybigui/react 0.21.1

Tooltip — MD3 slot-based styling refactor

  • Rewrote Tooltip.variants.ts to use documented slot CVA functions, matching the Button/Switch architecture
  • Replaced the binary isVisible variant with a 3-state animation variant (enter | exit | none) that supports prefers-reduced-motion
  • Added rich tooltip slot variants: richTooltipTitleVariants, richTooltipSupportingTextVariants, richTooltipActionsVariants
  • Fixed MD3 token: rich tooltip subhead (title) now uses text-on-surface-variant per spec (was text-on-surface)
  • Added action row layout slot with correct -ml-2 mt-3 alignment per MD3 spec
  • Added prefers-reduced-motion guard in TooltipTrigger: overlay unmounts immediately on close under reduced motion, fixing a stuck-mount bug
  • Added reducedMotion field to TooltipAnimationContextValue for consumer access
  • Extended test suite with 9 new tests covering token correctness and reduced-motion behaviour

Full changelog: packages/react/CHANGELOG.md