Post

Compose tip: When you create either custom toggleable and selectable components (like switches, checkboxes, or radio inputs), or when you associate said native components with their labels and wrap them with, for example, a `Row`, use `toggleable` and `selectable` modifiers instead of `clickable`.

0 reposts5 likes

Also, remember to pass in the role (Role.Switch, Role.Checkbox, Role.RadioButton). Using the correct modifier and role ensures, that the semantics are communicated correctly to assistive technologies. #AndroidDev #Android #AndroidAccessibility