Do I need to do anything in compose to make this accessible? Or by virtue of it being a button that contains a text, it should work correctly? I can't test with talkback at the moment, so I'm just trying to see if adding a contentDescription via semantics modifier is needed in this case?
, is automatically provided to accessibility services.
if you set
Modifier.semantics { contentDescription }
then that will be used instead of the children
➕ 2
z
Zach Klippenstein (he/him) [MOD]
09/16/2025, 9:43 PM
you shouldn't need content description for this case though, this is the primary way buttons were designed to be used, it should be accessible automatically
Zach Klippenstein (he/him) [MOD]
09/16/2025, 9:44 PM
that said, if you want to customize the a11y experience, feel free
c
Colton Idle
09/16/2025, 10:30 PM
thanks for the link @ephemient! being able to point to docs in this case is perf.
thanks for the sanity check @Zach Klippenstein (he/him) [MOD] 😍 glad i was thinking correctly that a11y should be here by default basically.