sjmc11 / tourguide-js

TourGuide is a Javascript library for creating user tours and on-boarding steps for your apps.
https://tourguidejs.com
MIT License
592 stars 27 forks source link

Hide Prev at first step or if there is no actual prev step #3

Closed manchumahara closed 1 year ago

manchumahara commented 1 year ago

After the dialog is loaded we are in first step so there is no prev step, in that situation if the previous button id by default disabled then it will make better in ux.

sjmc11 commented 1 year ago

Hi @manchumahara

This has been resolved as of version 0.0.8 available on NPM.

If the tours activeStep is equal to 0, the previous button is disabled and a "disabled" class is added to the element. Feel free to customise this in CSS to hide the button entirely.

Thanks