usablica / intro.js

Lightweight, user-friendly onboarding tour library
http://introjs.com
Other
22.8k stars 2.59k forks source link

Skip button missing? #1104

Closed micrology closed 3 years ago

micrology commented 3 years ago

Description

In a previous version, the first step showed two buttons, Skip and Next. The current version show Back (inactive) and Next

Expected Behavior

The first step should show a Skip button for those who don't want to work through the Intro

Actual Behavior

No Skip button, only an inactive (and useless) Back button

Example (recommended)

See https://introjs.com/example/hello-world/index.html as an example of this

Environment (optional)

Chrome v87, Javascript, no frameworks

ZsharE commented 3 years ago

Same problem here, any solution ?

LE: Just looked in the source code, they changed the close button (x) with skip button.

afshinm commented 3 years ago

The skip button has been replaced with a close "x" button since v3. The close "x" still triggers the same events, etc. but visually, it has been changed a bit.

micrology commented 3 years ago

Can we have the Skip button back, please, at least as an option?

micrology commented 3 years ago

Even if the Skip button is lost, it still doesn't make much sense to have an inactive Back button on the first step. It's just visual clutter. So my ideal solution would be to replace the inactive Back button with an active Skip button (it doesn't matter that there is also a close x that has the same effect), and my alternative, second best, solution would be to remove the Back button entirely.

afshinm commented 3 years ago

@micrology sure, you can use the hidePrev option to hide the back button: https://introjs.com/docs/intro/options#hideprev