Since a few releases (I don’t know when exactly) lovelace started only loading styles required for the currently displayed things. This broke a card of mine, where I use
paper-dropdown-menu html elements.
The issue is, it seems to not load some css required for this element. If I refresh the page, the elements are just shown as a list, unstyled:
Once I navigate to a page, where this html element is used by home assistant itself (or add a native card which contains a dropdown) the necessary styles are loaded and it looks as it should:
How can I tell Home Assistant to load the styles required for this component?
The source code can be found at https://github.com/chaptergy/lightalarm-card where the latest release still uses
ha-paper-dropdown-menu in the card and
paper-dropdown-menu in the config editor, but they behave identically.