Skip to content

Commit 35da849

Browse files
authored
Add AccessibilityAction documentation for "expand" and "collapse" (facebook#4592)
* Box sizing documentation * add filter documentation * lint * Reply to comments * box shadow documentation * lint box shadow docs * lint again * remove simple * Add expand and collapse action documentation * fix typo
1 parent 84c742e commit 35da849

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/accessibility.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ When adding support for standard actions, `name` must be one of the following:
427427
- `'increment'` - Increment an adjustable component. On iOS, VoiceOver generates this action when the component has a role of `'adjustable'` and the user places focus on it and swipes upward. On Android, TalkBack generates this action when the user places accessibility focus on the component and presses the volume-up button.
428428
- `'decrement'` - Decrement an adjustable component. On iOS, VoiceOver generates this action when the component has a role of `'adjustable'` and the user places focus on it and swipes downward. On Android, TalkBack generates this action when the user places accessibility focus on the component and presses the volume-down button.
429429
- `'longpress'` - Android only - This action is generated when the user places accessibility focus on the component, then double-taps and holds one finger on the screen. This should perform the same action with, or without, assistive technology.
430+
- `'expand'` - Android only - This action "expands" the component so that TalkBack will announce an "expanded" hint.
431+
- `'collapse'` - Android only - This action "collapses" the component so that TalkBack will announce a "collapsed" hint.
430432

431433
The `label` field is optional for standard actions and is often unused by assistive technologies. For custom actions, it is a localized string containing a description of the action to be presented to the user.
432434

0 commit comments

Comments
 (0)