styxlab / gatsby-theme-try-ghost

A Gatsby theme to build flaring fast blogs from headless Ghost CMS
MIT License
136 stars 56 forks source link

Avoid content shifts on dark mode button #221

Closed styxlab closed 3 years ago

styxlab commented 3 years ago

Side effect of #205: The removal of the dark mode button in cases where there is no dark mode available, leads to ugly content shifts (press F5 a couple of times to see the shiftings). It seems that the check comes too later after the other buttons are already rendered. I am not sure, if that can be easily solved. One idea could be show the sun icon and make it non-clickable if dark mode is not available.