intro.js icon indicating copy to clipboard operation
intro.js copied to clipboard

Option to hide header in tour but keep skip cross button

Open ShivamS136 opened this issue 4 years ago • 4 comments

Description

I don't have titles in most of my tour elements, how can I hide that empty space but keep that cross skip button in the new updated UI.

Expected Behavior

If the title is empty then the header space should not be visible.

Actual Behavior

Empty space is visible

Errors and Screenshots

image

Example

Just initiate a tour with no title

Environment

Browser: Edge Latest version of IntroJS: 3.2.1

ShivamS136 avatar Jan 28 '21 10:01 ShivamS136

+1 same issue

I have solved with

//INTROJS CUSTOM .introjs-tooltip-header{ display: none; }

leoplct avatar Jan 28 '21 12:01 leoplct

+1 same issue

I have solved with

//INTROJS CUSTOM .introjs-tooltip-header{ display: none; }

But this will hide the skip button(Cross sign) as well

ShivamS136 avatar Jan 28 '21 12:01 ShivamS136

Right now the header and exit/cross button have the same parent element and it's not possible to hide the header section without hiding the exit icon.

afshinm avatar Jan 31 '21 12:01 afshinm

To keep the exit button, try this: .introjs-tooltip-header { position: relative; } .introjs-skipbutton { position: absolute; top: 0; right: 0; }

neurot1k avatar Feb 25 '22 05:02 neurot1k