Repository navigation
v0.15.0 — richer tooltips, fullscreen modals
Added
-
Tooltipaccepts a rendered template (DS-0144) —textwidens fromstringtostring | Snippet, so a tip can hold a small template (a<code>path, aKbdchip, an emphasised label) instead of one flat string. A snippet renders inside the same tip element, so thearia-describedbycontract is unchanged: the accessible description stays whatever the tip contains. Existingtext="…"call sites are unaffected.Markup only, not interaction — the tip keeps
pointer-events: noneand stayshiddenwhile closed, per the WAI-ARIA tooltip pattern, so snippets must be non-interactive phrasing content (code,strong,kbd,br,Icon); interactive hints belong in a click-triggered toggletip/popover..tipnow usesdisplay: blockso wrapped/multi-line content lays out correctly. -
Modalfullscreen variant (DS-0145) — newfullscreenprop (defaultfalse) fills the viewport instead of rendering a centred, capped panel: header and footer stay pinned, the body owns the scroll, and100dvh/100dvw(with avh/vwfallback) keeps mobile browser chrome from overshooting. A boolean rather than asize="full"value, sincesm|md|lgis a design axis and "full" is a layout mode — in this mode the size variants go inert. Responsiveness stays with the caller (fullscreen={width < 640}). A full-bleed panel leaves no backdrop area to hit, socloseOnBackdropis unreachable there — the close button and Esc are the exits.
Changed
- Releases publish via npm Trusted Publishing (
DS-0143) — creating a GitHub release now triggersrelease.yml, which OIDC-authenticates to npm (no token, no OTP) and runspnpm publish --access public --provenance. A guard step asserts the tag matchespackage.json.
Full changelog: https://github.com/httpassoca/dssoca/blob/v0.15.0/CHANGELOG.md