flutter / flutter/flutter

[a11y][mac] switch button should use NSAccessibilitySwitchSubrole

Open
#161,539 2 comments 0 reactions 0 assignees View on GitHub
a: accessibility engine P3 team-macos triaged-macos
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Using https://api.flutter.dev/flutter/material/Switch-class.html

### Expected results

macos currently uses AXSwitch
https://github.com/flutter/engine/blob/66832de608c9f61e4db04589d52b2b899bca38eb/third_party/accessibility/ax/platform/ax_platform_node_mac.mm#L265

but it should use https://developer.apple.com/documentation/appkit/nsaccessibility-swift.struct/subrole/switch?language=objc

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.