Sidebar Background color Hassio V 108.2

Here are the sidebar colors I set.

  sidebar-background-color: var(--app-header-background-color)
  sidebar-icon-color: var(--state-icon-color)
  sidebar-text-color: var(--sidebar-icon-color)
  sidebar-selected-background-color: var(--app-header-background-color)
  sidebar-selected-icon-color: var(--state-icon-active-color)
  sidebar-selected-text-color: var(--sidebar-selected-icon-color)

Obviously use your own colors. I have found if you donā€™t also set the sidebar-selected background color especially if youā€™re switching between themes the previous color sticks in places even though the rest of the sidebar changes.

1 Like

Updated a few hours ago, I have the Chrome app and Ariela installed, no issues with different themes.
Same thing on a different device from which I have never used to access HomeAssistant.
Probably same issue as HACS, for me it kept working normally but other people reported a broken HACS or itā€™s components not working anymore.

Thank you for this fix!

  • How did you know this?
  • Why paper-listbox-background-color suddenly broke in v108.2 ?

I also had this ā€œproblemā€ and this fixed it for meā€¦ Obviously with my themes colour and not this.

On 0.107.7 Iā€™m still using paper-listbox-background-color and it works.

This didnā€™t work for meā€¦

Any help gratefully received - this is happening on all my themes that arenā€™t ā€˜defaultā€™ (I use 4 different ones for various things)

CTRL + F5 ?

Yup - no dice.

Edit - should add, this is 108.3 - I think I skipped 108.2, and possibly 108.1 but I canā€™t remember - was working before I just pressed update though, and now itā€™s like that and adding the line @blackvrs suggested to my ā€˜darkā€™ themes, reloading and clearing the cache didnā€™t change anything.

is another #metoo here useful?.. just updated to 108.3 because of the DB issue (which seems to be solved )

Introduced the sidebar issue though, on most themes (or so I can notice, because not all themes use a colored sidebar)

so: seeing the same thing ā€¦

wait, thereā€™s this: https://github.com/home-assistant/frontend/issues/5524

sidebar-background-color: "var(--paper-listbox-background-color)"

should fix it?

3 Likes

Confirm, that worked - no idea why declaring it as an actual colour didnā€™t, but hey-ho :slight_smile:

yes, as long as it works :wink:

now have to find the correct variable name for the dropdown background in the services page, which suffers the same here

1 Like

this fixed it for me, but it did require a HA restart!

no, thatā€™s not necessary, a simple frontend.reload_themes suffices:

2 Likes

learned something new. thanks!

theres a same proble when we go in cofigure/entiites or configure/devices.
custom themes show white color as side-bar was showing.
please anybody here who can guide.
thanks in adv.

Different problem. Add this to your theme:

card-background-color: "var(--paper-card-background-color)"
1 Like

Hi Tom,
would you know how to solve this too: Sidebar Background color Hassio V 108.2

  card-background-color: 'var(--paper-card-background-color)'

doesnt do it in this case, your reply wasnā€™t meant for me was it?</strike?

never mind it does! was too quick, and cache hadnā€™t reloaded I thinkā€¦ I can see all nice now.
Thanks!

bumping this comment as I have the same problem :smiley:
Iā€™m trying to find the correct css code at the moment, will let you know if I have any luck.

Found your last comment with solution, nevermind :smiley:
card-background-color was the way

Thanks a lot for this. This also fixed the same issue for me. Any hint on how you found the correct variable? I am still having a hard time identifying the names of the variables for my theme. The Google DevTools inspect-feature doesnā€™t really help. In this example, the ā€œcard-background-colorā€ isnā€™t referenenced anywhere in the dropdown menu or the related html elements.

Just a quick note to say this fixed my issue with the sidebar and topbar staying white when it shouldā€™ve been dark blue.

Thanks Tom! :+1:

1 Like