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
Backdrop changes element's background colour #490
Comments
I'm having the same issue. |
@Ousram Unfortunately I'm unable to play around with this further because I ended up using something else for my tour, but yes, the project was a blank project with only the bootstrap and bootstrap-tour files. |
I am having this same issue |
please create a jsfiddle for this issue, so we could more understand (the problem), based on your code. |
I also had this problem. For me, the solution was to make sure that in my application.css.sass file I import bootstrap-tour before I import bootstrap. So before I had: and I had the problem. Now I have: and the problem is gone. |
That may not be a good approach. I'd recommend wrapping the button in a div and use the wrapper to set the Step. The background: inherit added to the element I think it is to better stick out the element for the Tour. |
Hello. Please re-open the issue. Thanks, Guillaume |
Thanks for having re-opened this issue. The problem is that In that case, the background of the element is dark but the body is light so we have this inappropriate result. In my opinion, a fix is not easy. Adding It would be interesting to see how the boostrap tour works with dark themes, like: http://bootswatch.com/cyborg/. I hope it helps, Thanks, |
As I suggested earlier, you could just wrap the element in a Your jsFiddle updated: https://jsfiddle.net/Lz3d4vns/3/ |
Then, it's easy to fix it directly in bootstrap-tour. Wrap the element in a It would not require the user to change the HTML of his page, and bootstrap-tour gets better! WDYT? |
What do you think about allow developer to set the step element background-color |
@Ousram: I don't think it's a good solution. Sometimes you don't know what color you should use. In my example, you can replace the bootstrap CSS file by any bootswatch equivalent and it should continue to work without any modification in the JS. |
To be more precise, I am a developer of XWiki. We have a default skin but the user could use different themes (even from bootswatch). I am currently working on an extension for XWiki called Tour Application that should work with every theme that the user can chose. So I need a generic solution. I could probably add some code in my application to handle this use-case, but it would be a shame to not have it in the upstream library. WDYT? |
If setting the right color is too much, maybe the developer can set if yes or no, he wants the background-color to change. |
@sorich87 , what do you think ? |
Won't it break some designs? I'm think about when people use rules like |
Also it could break some event binding. Why is it that hard to wrap it manually? |
@Ousram about your solution of setting the background color, would setting the color automatically from the element color be a good solution? |
@sorich87: Indeed. I should have thought more about the impact of this proposition. @elivinskydb: We cannot always change the HTML code, especially from 3rd parties. |
Other idea: stop having a unique
In that case, we don't need to play with the What do you think? Thanks, Guillaume |
@gdelhumeau good idea! working on it. |
A new way to handle backdrop has been implemented in 7f98180. Please test. |
It seems it works: Thanks |
That's great. I was having the same problem. I downloaded that newer build and it worked great (although I don't think the minified versions in that build had the updates in them). Any idea when this will make it into an official release? |
with this solution, the highlight section won't have border-radius any more. I prefer to add a background-color option rather than handle backdrop with 4 divs. |
Is there a way to disable the colour changing that happens to an element when
backdrop: true
?The image below illustrates the problem I'm having.. the button colour is supposed to be
primary
i.e.#337ab7
.The text was updated successfully, but these errors were encountered: