Skip to content

Bootstrap Svelte 1.1.0

Choose a tag to compare

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

A compatible maintenance release for 1.x consumers, backporting issues #29 and #31 without the 2.0 Navbar or breakpoint changes.

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 breaking changes for 1.x consumers. Existing 1.x Navbar and responsive-breakpoint behavior is retained. Svelte peer requirement: ^5.29.0.

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

Published to npm with the maintenance dist-tag. You can also install @winkintel/bootstrap-svelte@maintenance; the default npm latest tag remains on 2.x.

Implemented and reviewed in #36 and #38. Full comparison: v1.0.12...v1.1.0