-
Notifications
You must be signed in to change notification settings - Fork 30.2k
[web][a11y] autofocus causes Safari to lose semantics #107595
Copy link
Copy link
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)browser: safari-macosonly manifests in Safari on macOSonly manifests in Safari on macOScustomer: troyf: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)browser: safari-macosonly manifests in Safari on macOSonly manifests in Safari on macOScustomer: troyf: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Steps to Reproduce
flutter run -d chromeon the code sample.Expected results:
The semantics of the Page 2 button and the Check me checkbox should be preserved and the screen reader should be able to interact with the elements.
Actual results:
The semantics are lost and the screen reader reads the elements as groups (see the attached video). Setting
autofocus: falseon the first button resolves this issue.Code sample
Logs
SafariLosesSemantics.mov