[a11y][mac] switch button should use NSAccessibilitySwitchSubrole
Open
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
Assessment
This issue has not been assessed yet.