Skip to content

MenuItem: label the toggle accessory with the row title and keep the row's own action reachable #56

Closed

Description

@romchornyi

MenuItem owns the row title and the accessory, but a SwitchView accessory is exposed to assistive technology as an unlabelled Toggle. An app row that is both a button (opens an explainer) and a switch cannot be made accessible from the outside without merging everything into one element.

dashpay/dashwallet-ios#1282 works around it for Settings → Advanced mode: the whole row is the switch, and the explainer is a "Learn more" custom action. Voice Control does not list custom actions, so it reaches the explainer only through "Show grid".

Wanted: MenuItem passes its title as the toggle's accessibility label, and the row's tap action stays a separate, reachable element (or an explicit API for it), so apps can drop the workaround.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions