-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
TailwindCSS breaks Plotly modebar layout #5828
Comments
I have this issue too, but |
This is a fix: .js-plotly-plot .plotly .modebar svg {
display: inline;
} or in svelte (which I'm using): :global(.js-plotly-plot .plotly .modebar svg) {
display: inline;
} this is due to tailwind using css remedy style reset. The discussion about changing svg to block is here. |
Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson |
I happened to run into this today and it's quite awkward. Since TailwindCSS is pretty popular, this is probably worth taking a look at. TailwindCSS 3.4.3 |
thanks @robertclaus - I'll see if we can get this into one of the upcoming work cycles. |
When using Plotly together with TailWindCSS I noticed that the mode bar's layout is not correct:
Here is the codepen for reproducing this error.
I could confirm this was caused by the following rule that override the
display
property of.main-svg
.I could fix this by adding this to override the CSS normalization behavior.
I noticed that the
display
property wasblock
anyway. I don't understand how this inconsistency is caused. Do you think this is a bug?The text was updated successfully, but these errors were encountered: