Skip to content

@rentnerkev/menu 1.1.0

Choose a tag to compare

@RentnerKev RentnerKev released this 13 Nov 15:29
· 8 commits to main since this release
fb3e44f

RentnerMenu release banner

Context menus and customization

  • Clicking outside the menu surfaces now dismisses a context menu even within its original target. Native actions and focus are preserved, and regular and embedded dropdown buttons continue to toggle correctly.
  • MenuProvider.menu and MenuProvider.contextMenu provide separate positioning defaults. Unless overridden, pointer-opened context menus appear to the right in LTR and to the left in RTL; keyboard-opened menus remain anchored to the target rectangle. Local overrides and viewport collisions are respected.
  • Action icons, checkbox/radio indicators, and submenu arrows can be styled independently. Items with both an icon and a selection indicator retain aligned columns.
  • New typed design tokens control spacing, borders, and radii without additional runtime dependencies.
  • Long presses suppress unintended follow-up actions without blocking subsequent keyboard activation. Documentation, playground examples, and regression tests have been expanded.
  • Development dependencies have been updated.

Upgrade notes

Existing props and classNames keys remain supported. Shared provider defaults still apply to both menu types; type-specific defaults can override them per property.

The indicator slot now styles selection marks only. Action icons inherit the action's text color by default; use classNames.icon to retain a previous icon color. The new classNames.submenuIndicator slot styles submenu arrows independently. The new pointer positioning defaults apply only when no explicit or inherited side is configured.

Implemented in PR #16, fixing Issue #15.

All changes since v1.0.2

Release · v1.1.0

Stable Release · Published on 13 November 2026

Changelog

v1.0.2...v1.1.0

🐛 Fixes

  • correct context-menu dismissal and customization (#16) (fb3e44f)

📦 Dependencies

  • bump the routine-updates group across 1 directory with 2 updates (#13) (1afe482)
  • bump @testing-library/user-event (#14) (5a9fb10)
  • bump oxlint from 1.92.0 to 1.93.0 in the routine-updates group (#12) (a673f58)
  • bump the routine-updates group across 1 directory with 2 updates (#11) (6801631)
  • bump the routine-updates group in /playground with 2 updates (#10) (7a82056)