feat: Add "option" to available role values (#35137)
Summary: As pointed out by efoken on https://github.com/facebook/react-native/issues/34424#issuecomment-1283854395 we forgot we add the `option` value to the `role` prop, so this PR adds this missing value as requested on https://github.com/facebook/react-native/issues/34424. ## Changelog [General] [Added] - Add "option" to available role values Pull Request resolved: https://github.com/facebook/react-native/pull/35137 Test Plan: Ensure that CI is green as there isn't much to test in this case because we're just adding a value that maps to `undefined` Reviewed By: jacdebug Differential Revision: D40849497 Pulled By: NickGerleman fbshipit-source-id: 5e3e24c0ff05c361a7a8dc1ee1f20ba3fb6988ca
This commit is contained in:
Родитель
f3d9f2ea23
Коммит
e3e635ef84
|
@ -330,6 +330,7 @@ export type Role =
|
|||
| 'navigation'
|
||||
| 'none'
|
||||
| 'note'
|
||||
| 'option'
|
||||
| 'presentation'
|
||||
| 'progressbar'
|
||||
| 'radio'
|
||||
|
|
|
@ -85,6 +85,7 @@ export type Role =
|
|||
| 'navigation'
|
||||
| 'none'
|
||||
| 'note'
|
||||
| 'option'
|
||||
| 'presentation'
|
||||
| 'progressbar'
|
||||
| 'radio'
|
||||
|
|
|
@ -92,6 +92,8 @@ export function getAccessibilityRoleFromRole(role: Role): ?AccessibilityRole {
|
|||
return 'none';
|
||||
case 'note':
|
||||
return undefined;
|
||||
case 'option':
|
||||
return undefined;
|
||||
case 'presentation':
|
||||
return 'none';
|
||||
case 'progressbar':
|
||||
|
|
Загрузка…
Ссылка в новой задаче