One of the screens in my App has a gallery and a form. I use an If statement in the TemplateFill property to change the color of the selected item. When not selected the color is transparent white, and all the labels in my gallery have a transparent fill. It works fine in the browser, both in design and play, but in teams a little less than half the row has the background color.
Browser

Teams Desktop App

I've resized the controls in the gallery with no change to the way the template fill is painted.
Any ideas?