Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap 4 #554

Open
aeksco opened this issue May 27, 2016 · 18 comments
Open

Bootstrap 4 #554

aeksco opened this issue May 27, 2016 · 18 comments

Comments

@aeksco
Copy link

aeksco commented May 27, 2016

Are there any plans to make this project Bootstrap 4 compliant? I think the following changes would move this in the right direction:

  • Migrate LESS to SCSS
    • Leverage $border-radius and $enable-rounded variables for .tour-step-background CSS
    • Use rem in favor of px
    • Replace btn-default with btn-secondary
  • Ensure compatibility with Bootstrap 4 Popovers
    • Replace .popover('destroy') with .popover('dispose')
    • Replace <div class='arrow'></div> with <div class='popover-arrow'></div> in popover template definition
  • AMD / CommonJS / Browserify Support (var tour = require('boostrap-tour);)

I'm currently using BS4 and I've only been able to get tours to work when I include the standalone files - this results in some CSS conflicts and inconsistent popover placement and behavior.

If we could create a milestone to make this project compatible with Bootstrap 4 I would be happy to contribute to reaching those goals - I've working on a large project that would benefit tremendously from a consistent tour experience and at the moment there isn't an open-source alternative that's as well supported and maintained as bootstrap-tour.

Edits: elaborated on required changes for BS4 compatibility

@sorich87
Copy link
Owner

sorich87 commented Jun 6, 2016

@aeksco of course, we want to make this project Bootstrap 4 compliant.

Are these the only changes needed for compatibility?

@sorich87
Copy link
Owner

sorich87 commented Jun 6, 2016

It looks like rem question is not settled yet twbs/bootstrap#19943.

@aeksco
Copy link
Author

aeksco commented Jun 6, 2016

@sorich87 As far as I can tell those are the only changes required for Bootstrap 4 compliance. I've got a feature branch working with the aforementioned changes - I'll have some time this afternoon to push to my remote. Once that's in place we can discuss how we want to manage these breaking changes - a bootstrap-4 branch would be a good place to isolate this development. I'll post an update once my changes are pushed.

@sorich87
Copy link
Owner

sorich87 commented Jun 6, 2016

Ok. Thanks!

I think we can make these changes backward compatible:

  • Migration from LESS to SCSS / Leverage $border-radius and $enable-rounded variables for .tour-step-background CSS
    People currently importing the LESS file can simply import the future generated CSS file without making any change to their build process.
  • Using rem in favor of px
    Let's wait for Why has Bootstrap 4 changed to using rem? twbs/bootstrap#19943 to be settled so that we don't have to revert later.
  • Replacing btn-default with btn-secondary, .popover('destroy') with .popover('dispose'), <div class='arrow'></div> with <div class='popover-arrow'></div>
    We can support both. E.g. <div class='arrow popover-arrow'></div>.
  • AMD / CommonJS / Browserify Support
    Done today 57ee748

@kfugger
Copy link

kfugger commented Jun 15, 2016

Happy to hear that you are working on Bootstrap 4 compatibility! I have also experienced issues related to modal/popover misplacement and inability to exit the tour. Will you push these changes to a new branch?

@julkue
Copy link

julkue commented Oct 19, 2016

@sorich87 In the meantime you should point out the required Bootstrap version in the "dependencies" documentation.

@julkue
Copy link

julkue commented Nov 8, 2016

"Compatible with Bootstrap >= 2.3.0" is wrong! It must be ">= 2.3.0 < 4"

@occasl
Copy link

occasl commented Jun 19, 2017

Any update on this? I'd love to use this feature in bootstrap 4.

@aeksco
Copy link
Author

aeksco commented Oct 7, 2017

Bootstrap 4 beta was just released - so we're likely going to see fewer breaking changes that we did with the alpha releases. I'm going to continue my work on this issue - I'll post an update here as things take shape!

@azyzio
Copy link

azyzio commented Oct 26, 2017

Found a change that is necessary for the tour to work properly Popovers are now using:
.popover-header instead of .popover-title
.popover-body instead of .popover-content
Should be updated in the template

@sorich87
Copy link
Owner

The latest version in master should be compatible with Bootstrap, except for the orphan option.

@azyzio
Copy link

azyzio commented Dec 12, 2017

Hey Ulrich, is there any progress on enabling orphan option?

@marclaporte
Copy link
Contributor

Some work has happened here: #643

@mikesutton
Copy link

I think this is a CSS issue, I played around with it and in the end I extracted the orphan css into another file and overwrote it as follows:

.popover[class*="tour-"].orphan { left: 50% !important; top: 50% !important; margin-top: 0; position: absolute; transform: translate(-50%, -50%) !important; }

put this after the bootstrap-tour.css entry in your code. Should work.

@viktorsmari
Copy link

Is Bootstrap 4 compatible or not?
I am having issues out of the box, nothing appears on screen, but when I enable backdrop:true I can see the element I chose in the first step, but nothing else, just a grey screen.

@dragontheory
Copy link

Same here! Please advise as to whether Bootstrap-Tour is compatible with Bootstrap 4+.
Thank you!

@dragontheory
Copy link

Actually is Bootstrap-Tour compatible with Bootstrap 4.2.1?
Thanks again!

@vivekapex
Copy link

Any progress here? I need to use it for my app but latest build files contain bootstrap css version v3.1.0 and popover version 3.3.7. My tour version is 0.12.0 and bootstrap version is 4.3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests