Theme doesn't apply when using components
See original GitHub issueCan’t get themes to apply when using bokeh.embed.components
.
Have tried manually using theme.apply_to_model(model)
, but it doesn’t seem to work.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Material-UI theme not working in shared-component
I'm dealing with something similar and haven't resolved it completely, but I have a strong feeling it involves multiple React contexts being created...
Read more >How to customize - Material UI - MUI
Learn how to customize Material UI components by taking advantage of different strategies for specific use cases.
Read more >Adding themes to a React app using styled-components | Blog
In this blog post, we'll go through some reasons you might want to provide theme options in your next application, and have a...
Read more >The complete guide to Angular Material Themes - Tomas Trajan
Angular Material contains components like dropdown or dialog which create overlay over the application's default layout, to theme these elements we have to...
Read more >Theming with React and MUI - Welcome, Developer
Learn how to create custom themes to React app using MUI. ... is a emotion's library that allows to use styled components in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve hit this too, and it looks like it is because
components
uses aWhich adds the model to a document, which combined with
_attach_document
inmodel.py
applies the document theme and then the default theme if it is removed. It seems to work if you add the model to a document before callingcomponents
:@bryevdv - I’m happy to look at a fix, I guess the obvious one would be to do something to preserve the theme in the
with _ModelInDocument:
call even if the model is not in a documentSomething like:
But I’m not sure if this would have repercussions elsewhere - otherwise this could be done around the with loop in
embed.py
.