Style changing does not work correctly in productive mode #47
Labels
bug
Something isn't working
discussion
share about technical or feature topic
help wanted
Extra attention is needed
Describe the bug
When building for production (
yarn build
) and running that version, each theme can only be selected once. Switching back to the previous theme is not possible.To Reproduce
Steps to reproduce the behavior:
In development mode, themes are imported directly (as text within the
<style>
tag) - and are then loaded inline into the style tag.in production mode, it's a seperate css file - therefore the ID assignment fails, so disabling is not working.
I'm not certain how / if to fix this yet - as i think the different themes may cause display problems in conjunction with eCharts - which can only be "dark" or "light" - but not different shades of dark.
In the end, this might mean that we will fall back to 2 default styles (one light, one dark).
This might also simplify layout, as the different themes have quite different sizes (buttons / header line are higher in some styles).
@GrilledChickenThighs - as the author of the bootswatch theme part - have you got an opinion related to this?
The text was updated successfully, but these errors were encountered: