You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
This no longer seems to be an issue starting with plotly.js v3.1.0; when using a version of plotly.js >= 3.1.0 in the linked codepen, the modebar renders as expected.
Most likely the fix can be attributed to the modebar changes in #7492.
Activity
tashburn commentedon Dec 21, 2021
I have this issue too, but
svg{ display: inherit; }does not fix it for me.brendanmatkin commentedon Mar 23, 2023
This is a fix:
or in svelte (which I'm using):
this is due to tailwind using css remedy style reset. The discussion about changing svg to block is here.
gvwilson commentedon Jul 5, 2024
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
robertclaus commentedon Jul 19, 2024
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
Plotly 2.33.0
react-plotly.js 2.6.0
gvwilson commentedon Jul 19, 2024
thanks @robertclaus - I'll see if we can get this into one of the upcoming work cycles.
Fix plotly menubar
guillaume-mueller commentedon Apr 28, 2025
I have the same issue but the fix is not enough. I use Tailwind v4.
Without preflight:

With preflight:

With preflight and @brendanmatkin's fix:

Any idea ?
EDIT: I just found that adding
vertical-align: baseline;fixes it.Final code:
emilykl commentedon Aug 30, 2026
This no longer seems to be an issue starting with plotly.js v3.1.0; when using a version of plotly.js >= 3.1.0 in the linked codepen, the modebar renders as expected.
Most likely the fix can be attributed to the modebar changes in #7492.