File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1026
1026
prevTooltipButton . removeAttribute ( 'tabIndex' ) ;
1027
1027
nextTooltipButton . removeAttribute ( 'tabIndex' ) ;
1028
1028
1029
+ // when it's the first step of tour
1029
1030
if ( this . _currentStep == 0 && this . _introItems . length > 1 ) {
1031
+ skipTooltipButton . className = 'introjs-button introjs-skipbutton' ;
1030
1032
nextTooltipButton . className = 'introjs-button introjs-nextbutton' ;
1031
1033
1032
1034
if ( this . _options . hidePrev == true ) {
1039
1041
prevTooltipButton . tabIndex = '-1' ;
1040
1042
skipTooltipButton . innerHTML = this . _options . skipLabel ;
1041
1043
} else if ( this . _introItems . length - 1 == this . _currentStep || this . _introItems . length == 1 ) {
1044
+ // last step of tour
1042
1045
skipTooltipButton . innerHTML = this . _options . doneLabel ;
1043
- skipTooltipButton . className = 'introjs-button introjs-donebutton' ;
1046
+ // adding donebutton class in addition to skipbutton
1047
+ skipTooltipButton . className += ' introjs-donebutton' ;
1044
1048
prevTooltipButton . className = 'introjs-button introjs-prevbutton' ;
1045
1049
1046
1050
if ( this . _options . hideNext == true ) {
1052
1056
1053
1057
nextTooltipButton . tabIndex = '-1' ;
1054
1058
} else {
1059
+ // steps between start and end
1060
+ skipTooltipButton . className = 'introjs-button introjs-skipbutton' ;
1055
1061
prevTooltipButton . className = 'introjs-button introjs-prevbutton' ;
1056
1062
nextTooltipButton . className = 'introjs-button introjs-nextbutton' ;
1057
1063
skipTooltipButton . innerHTML = this . _options . skipLabel ;
You can’t perform that action at this time.
0 commit comments