Why `testTag` doesn’t override like `background` ?...
# compose
t
Why
testTag
doesn’t override like
background
? Here it picked the first testTag but second background color 🤔
👀 1
b
There can only be one test tag because of the way it maps to the semantics tree, and it always takes the parent one when merging the semantics properties, which in this case would be the first modifier. https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]roidx/compose/ui/semantics/SemanticsProperties.kt;l=190;bpv=0
Also, it hasn't overridden the background color, it's just drawn twice at a guess and you can't see the green
1