Skip to content

Commit

Permalink
Let the common btn class be set by IntroJS in the buttonClass option
Browse files Browse the repository at this point in the history
  • Loading branch information
texpert committed Aug 27, 2024
1 parent aea8683 commit 26e59a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/assets/javascripts/camaleon_cms/admin/_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function init_intro(){
exitOnOverlayClick: false,
showStepNumbers: false,
showBullets: false,
disableInteraction: true
disableInteraction: true,
buttonClass: 'btn'
}).oncomplete(finish).onexit(finish).onbeforechange(function(ele) {
if($(ele).hasClass("treeview") && !$(ele).hasClass("active")) $(ele).children("a").click();
if($(ele).is("li")){
Expand Down Expand Up @@ -88,4 +89,4 @@ function modal_fix_multiple(){
activeModal.enforceFocus();
activeModal.handleUpdate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,12 @@
}

.introjs-prevbutton, {
@extend .btn;
color: #fff !important;
background-color: #5cb85c !important;
border-color: #4cae4c !important
}

.introjs-nextbutton {
@extend .btn;
color: #fff !important;
background-color: #337ab7 !important;
border-color: #2e6da4 !important
Expand Down

0 comments on commit 26e59a9

Please sign in to comment.