Background of container selected in listview

Hi, I'm working on a task where, when a container is selected, it should be highlighted with a green background in the list view.

I've already set a selectedItem.id, but the background doesn't change as expected.

Can someone help me figure out what I might be missing to apply the green background on selection?

Interesting; i just ran into something but not sure if it's 1:1 with your example.

For mine, I'm trying to conditionally set the background on a container which acts as the main repeatable element in my list view. I.e. it contains all the other repeatables.

If i set a color straight up, it works on all items. But I only want at most one to be styled; i do this by matching the underlying repeatable item's id to something external based on user input.

The logic is right; i can see the ternary conditional working properly on input focus preview, but it only renders on the page on hover of the singled out item, and only in Edit mode. Bizarre!

Screenshot 2025-08-07 at 2.03.24 PM