Skip to content

Commit

Permalink
Back out "Add focus order docs"
Browse files Browse the repository at this point in the history
Summary:
Original commit changeset: 1ec6d0e92d7e

Original Phabricator Diff: D62869010

Reverting this change too, as the code is all backed out.

Reviewed By: pengj

Differential Revision: D63253390

fbshipit-source-id: bdca46d732c1b36cf5b12f5a224cec94b8657679
  • Loading branch information
Anna Powolny authored and facebook-github-bot committed Sep 23, 2024
1 parent 1b29012 commit 819e0c4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions docs/accessibility/accessibility.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,3 @@ The following table provides the supported events of the `Style` object:
| `Style.performAccessibilityAction` | <a href="https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat.html#performAccessibilityAction(android.view.View, int, android.os.Bundle)">performAccessibilityAction</a> |
| `Style.sendAccessibilityEvent` | <a href="https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat.html#sendAccessibilityEvent(android.view.View, int)">sendAccessibilityEvent</a> |
| `Style.sendAccessibilityEventUnchecked` | <a href="https://developer.android.com/reference/android/support/v4/view/AccessibilityDelegateCompat.html#sendAccessibilityEventUnchecked(android.view.View, android.view.accessibility.AccessibilityEvent)">sendAccessibilityEventUnchecked</a> |


## Focus Order

You can customize the default focus order behavior by creating focus order properties using `useFocusOrder()` hook and adding them to the `Style` object. This allows you to tailor the focus order to your specific needs, ensuring that interactive elements are navigable in a logical and predictable manner.


```kotlin file=sample/src/main/java/com/facebook/samples/litho/kotlin/accessibility/FocusOrderComponent.kt start=start_focusorder_a11y_example end=end_focusorder_a11y_example
```

0 comments on commit 819e0c4

Please sign in to comment.