Anybody uses accessibility ids on buttons? I updat...
# compose
m
Anybody uses accessibility ids on buttons? I updated to compose material 1.0.0-rc01 and the following doesn't seem to work anymore:
Copy code
Button(
    modifier = Modifier.semantics {
        contentDescription = "my-button"
    },
    onClick = {},
) {
    Text("Click me")
}
What works is moving the modifier to the Text instead but I can't find this behavior change mentioned in release notes. Update: cannot put contentDescription on TextFields either.
z
I think there were some recent changes to the use of merged/unmerged trees for accessibility, but I’m not sure exactly how that relates to this. Is that example actual code? “my-button” doesn’t seem like a very accessible content description for screen readers.
m
it's an example, it says click me
I found out TextFields are also affected so this breaks our Appium test link if someone wants to follow this issue https://issuetracker.google.com/issues/193159257