Repository navigation
Commit 033200f
committed
Map role="slider" to the adjustable accessibility trait on iOS
`role="slider"` resolves to no accessibility traits on iOS, so VoiceOver
does not treat the view as adjustable, while `accessibilityRole="adjustable"`
does. Before the ARIA roles moved to native, the JS mapping turned
`role: 'slider'` into `accessibilityRole: 'adjustable'`.
Add `slider` to the `adjustable` case of the traits `fromString`, the same
way `img`/`image` and `heading`/`header` share a case.1 parent 7fc911a commit 033200f
2 files changed
Lines changed: 8 additions & 1 deletion
File tree
- packages/react-native/ReactCommon/react/renderer/components/view
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
0 commit comments