Skip to content

Bootstrap Svelte 2.1.0

Latest

Choose a tag to compare

@vince-winkintel vince-winkintel released this 19 Sep 19:05
· 2 commits to main since this release

A compatible feature and bug-fix release for 2.x consumers, covering issues #29 and #31.

Changes

  • Add optional Offcanvas.Root triggerElements references for consumer-controlled buttons, links, and SVG elements. An owning enabled primary press no longer causes premature outside dismissal or a spurious static-backdrop onHidePrevented event.
  • Ownership follows the current references, supports null lists and entries, and ignores detached elements. Disabled, non-primary, unrelated, and stacked-overlay behavior is preserved. Includes API documentation and an interactive example.
  • Fix collapseAria cleanup and reactive reattachment overwriting consumer-owned ARIA attributes and roles. Cleanup restores prior values only while the current value still matches the attachment's write.

Compatibility and installation

No new breaking changes for 2.x consumers. Svelte peer requirement: ^5.29.0.

pnpm add @winkintel/bootstrap-svelte@^2.1.0 bootstrap

Published to npm with the latest dist-tag. Consumers remaining on 1.x can install the companion 1.1.0 release using @^1.1.0 or @maintenance.

Consumers upgrading from 1.x to 2.x should follow the 2.0 migration guide.

Implemented and reviewed in #35 and #37. Full comparison: v2.0.0...v2.1.0