Skip to content

Commit

Permalink
feat: Add "option" to available role values
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Oct 30, 2022
1 parent 87c356d commit c01e7f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Libraries/Components/View/ViewAccessibility.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ export type Role =
| 'navigation'
| 'none'
| 'note'
| 'option'
| 'presentation'
| 'progressbar'
| 'radio'
Expand Down
1 change: 1 addition & 0 deletions Libraries/Components/View/ViewAccessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export type Role =
| 'navigation'
| 'none'
| 'note'
| 'option'
| 'presentation'
| 'progressbar'
| 'radio'
Expand Down
2 changes: 2 additions & 0 deletions Libraries/Utilities/AcessibilityMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit c01e7f8

Please sign in to comment.