Repository navigation
v0.1.3
Install: npm i svelte-tourlight@0.1.3
Fixes (found while integrating into the EscapePlan app)
- The phone sheet no longer covers low targets. The new
sheetPositionoption is'auto'(default),'top'or'bottom'. In auto mode the sheet docks at the top, withsafe-area-inset-toppadding, whenever the target's centre is in the lower 45% of the viewport (a fixed mobile tab bar, for example). With'top', scrollable targets are moved into the lower part of the screen, below the sheet. The tooltip'sdata-sheetattribute is now"top"or"bottom". - The theme attribute is scoped. The overlay and beacons now carry
data-tourlight-themeinstead ofdata-theme, so daisyUI and other[data-theme]theme systems no longer redefine--color-*inside the tour. If you styled.tourlight-root[data-theme=…]yourself, switch to[data-tourlight-theme=…].
Also
scrollIntoViewinsvelte-tourlight/coreacceptsband: [start, end](fractions of the viewport height).- New demos: a
sheetPositionswitch with a fixed tab bar on the phone page, and a daisyUI note on the themes page.