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
Problem: My h1 tag, hr tag, and everything I write outside the dash app had light mode on, despite having set the base template to be in darkmode. When I remove the plotly_direct tag, everything goes back to normal darkmode.
Is there a way to fix this without dropping plotly_direct?
The text was updated successfully, but these errors were encountered:
@GarderesG the template tag - which incidentally can be overridden like any other Django template - doesn't do very much and doesn't introduce any css of its own so its probably not the cause of this issue.
If you look inside the page using your browser's developer tools/console, can you see where the css changes? Could it be something in your Dash app?
You were right. I kept investigating, and eventually found my issue: when instantiating my Dash app with DjangoDash constructor, I set the parameter add_bootstrap_links to True. When set to False, my problem disappears, and the bootstrap used in the Dash app (from dash_bootstrap_components or custom bootstrap CSS) is still correctly displayed.
Consequently, it is not clear to me what add_bootstrap_links is for, based on my reading of the documentation. Could you give me additional details?
Hi @delsim, would you have an idea on why add_bootstrap_links parameter in the constructor interferes with Dash Bootstrap Components when used with the plotly_direct tag?
I also have a question regarding the plotly_direct tag: do you plan on opening the possibility to pass initial_arguments parameter as with the other tags? I believe that when one wants to pass initial_arguments, there is no alternative to using iframes which I find quite painful with long Dash apps (double scrollbars, even with hidden overflow).
Hi @delsim, thank you for the very nice package, I am a big fan of it.
On my django project, I have a Dash webapp (Dashboard) that I am serving on my
homepage.html
template withplotly_direct
tag.Div
with darkmode on as you can see below with thebg-dark
className.dash_app.py
homepage.html
template extends abase.html
template, with dark mode on as you can see on the second line in the html tag.base.html
homepage.html
template is as follows:Problem: My h1 tag, hr tag, and everything I write outside the dash app had light mode on, despite having set the base template to be in darkmode. When I remove the
plotly_direct
tag, everything goes back to normal darkmode.Is there a way to fix this without dropping
plotly_direct
?The text was updated successfully, but these errors were encountered: