You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* minor doc improvements:
- format string values more clearly
- update list of values for accessibilityRole
* mirror formatting updates on new rules
Co-authored-by: JP <[email protected]>
Copy file name to clipboardExpand all lines: docs/rules/has-valid-accessibility-live-region.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
3
3
On android devices, when components dynamically change, we want TalkBack to alert the end user. This is made possible by the `accessibilityLiveRegion` property. It can be set to the following values:
4
4
5
-
- none: Accessibility services should not announce changes to this view.
6
-
- polite: Accessibility services should announce changes to this view.
7
-
- assertive: Accessibility services should interrupt ongoing speech to immediately announce changes to this view.
5
+
-`"none"`: Accessibility services should not announce changes to this view.
6
+
-`"polite"`: Accessibility services should announce changes to this view.
7
+
-`"assertive"`: Accessibility services should interrupt ongoing speech to immediately announce changes to this view.
Copy file name to clipboardExpand all lines: docs/rules/has-valid-important-for-accessibility.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
3
3
If there are two (or more) overlapping UI components with the same parent, default accessibility focus can have unpredictable behavior. The `importantForAccessibility` property will resolve this by controlling if a view fires accessibility events and if it is reported to accessibility services. It can be set to:
4
4
5
-
- auto
6
-
- yes
7
-
-no
8
-
- no-hide-descendants (this will force accessibility services to ignore the component and all of its children).
5
+
-`"auto"`
6
+
-`"yes"`
7
+
-`"no"`
8
+
-`"no-hide-descendants"` (this will force accessibility services to ignore the component and all of its children).
0 commit comments