Conditional Background Color

I’d like to change background color based on a certain condition. The only idea that came to my mind, was a conditional visibility on two rectangles with different background colors. but the problem is, when one rectangle is invisible, all the content in the foreground (lables, etc) vanish too, although they are not grouped together.

any ideas on how to solve that?

okay, i have solved the issue myself by duplicating the list element including background and foreground and placing them below each other, so when one is hidden, the other one moves up.

1 Like

I remember a component that is called color changing element you can make a rectangle that changes color