Skip to content

Commit a28b682

Browse files
authored
fix class attr warning for SnackPlayer and on multiple pages (#4721)
1 parent 7da01bc commit a28b682

File tree

306 files changed

+3129
-3129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

306 files changed

+3129
-3129
lines changed

docs/accessibility.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ To use, set the `accessibilityLabel` property to a custom string on your View, T
4848

4949
In the above example, the `accessibilityLabel` on the TouchableOpacity element would default to "Press me!". The label is constructed by concatenating all Text node children separated by spaces.
5050

51-
### `accessibilityLabelledBy` <div class="label android">Android</div>
51+
### `accessibilityLabelledBy` <div className="label android">Android</div>
5252

5353
A reference to another element [nativeID](view.md#nativeid) used to build complex forms.
5454
The value of `accessibilityLabelledBy` should match the `nativeID` of the related element:
@@ -83,15 +83,15 @@ Provide the `accessibilityHint` property a custom string on your View, Text, or
8383
</TouchableOpacity>
8484
```
8585

86-
<div class="label ios basic">iOS</div>
86+
<div className="label ios basic">iOS</div>
8787

8888
In the above example, VoiceOver will read the hint after the label, if the user has hints enabled in the device's VoiceOver settings. Read more about guidelines for `accessibilityHint` in the [iOS Developer Docs](https://developer.apple.com/documentation/objectivec/nsobject/1615093-accessibilityhint)
8989

90-
<div class="label android basic">Android</div>
90+
<div className="label android basic">Android</div>
9191

9292
In the above example, TalkBack will read the hint after the label. At this time, hints cannot be turned off on Android.
9393

94-
### `accessibilityLanguage` <div class="label ios">iOS</div>
94+
### `accessibilityLanguage` <div className="label ios">iOS</div>
9595

9696
By using the `accessibilityLanguage` property, the screen reader will understand which language to use while reading the element's **label**, **value**, and **hint**. The provided string value must follow the [BCP 47 specification](https://www.rfc-editor.org/info/bcp47).
9797

@@ -104,11 +104,11 @@ By using the `accessibilityLanguage` property, the screen reader will understand
104104
</View>
105105
```
106106

107-
### `accessibilityIgnoresInvertColors` <div class="label ios">iOS</div>
107+
### `accessibilityIgnoresInvertColors` <div className="label ios">iOS</div>
108108

109109
Inverting screen colors is an accessibility feature available in iOS and iPadOS for people with color blindness, low vision, or vision impairment. If there's a view you don't want to invert when this setting is on, possibly a photo, set this property to `true`.
110110

111-
### `accessibilityLiveRegion` <div class="label android">Android</div>
111+
### `accessibilityLiveRegion` <div className="label android">Android</div>
112112

113113
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 `none`, `polite`, and `assertive`:
114114

@@ -165,13 +165,13 @@ In the above example method `addOne` changes the state variable `count`. When th
165165
- **toolbar** Used to represent a toolbar (a container of action buttons or components).
166166
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to Android's GridView.
167167

168-
### `accessibilityShowsLargeContentViewer` <div class="label ios">iOS</div>
168+
### `accessibilityShowsLargeContentViewer` <div className="label ios">iOS</div>
169169

170170
A boolean value that determines whether the large content viewer is shown when the user performs a long press on the element.
171171

172172
Available in iOS 13.0 and later.
173173

174-
### `accessibilityLargeContentTitle` <div class="label ios">iOS</div>
174+
### `accessibilityLargeContentTitle` <div className="label ios">iOS</div>
175175

176176
A string that will be used as the title of the large content viewer when it is shown.
177177

@@ -214,13 +214,13 @@ Represents the current value of a component. It can be a textual description of
214214
| now | The current value of this component's range. | integer | No |
215215
| text | A textual description of this component's value. Will override `min`, `now`, and `max` if set. | string | No |
216216

217-
### `accessibilityViewIsModal` <div class="label ios">iOS</div>
217+
### `accessibilityViewIsModal` <div className="label ios">iOS</div>
218218

219219
A boolean value that indicates whether VoiceOver should ignore the elements within views that are siblings of the receiver.
220220

221221
For example, in a window that contains sibling views `A` and `B`, setting `accessibilityViewIsModal` to `true` on view `B` causes VoiceOver to ignore the elements in view `A`. On the other hand, if view `B` contains a child view `C` and you set `accessibilityViewIsModal` to `true` on view `C`, VoiceOver does not ignore the elements in view `A`.
222222

223-
### `accessibilityElementsHidden` <div class="label ios">iOS</div>
223+
### `accessibilityElementsHidden` <div className="label ios">iOS</div>
224224

225225
A boolean value indicating whether the accessibility elements contained within this accessibility element are hidden.
226226

@@ -292,7 +292,7 @@ Defines a string value that labels an interactive element.
292292
| ------ |
293293
| string |
294294

295-
### `aria-labelledby` <div class="label android">Android</div>
295+
### `aria-labelledby` <div className="label android">Android</div>
296296

297297
Identifies the element that labels the element it is applied to. The value of `aria-labelledby` should match the [`nativeID`](view.md#nativeid) of the related element:
298298

@@ -307,7 +307,7 @@ Identifies the element that labels the element it is applied to. The value of `a
307307
| ------ |
308308
| string |
309309

310-
### `aria-live` <div class="label android">Android</div>
310+
### `aria-live` <div className="label android">Android</div>
311311

312312
Indicates that an element will be updated and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
313313

@@ -321,7 +321,7 @@ Indicates that an element will be updated and describes the types of updates the
321321

322322
---
323323

324-
### `aria-modal` <div class="label ios">iOS</div>
324+
### `aria-modal` <div className="label ios">iOS</div>
325325

326326
Boolean value indicating whether VoiceOver should ignore the elements within views that are siblings of the receiver.
327327

@@ -337,7 +337,7 @@ Indicates whether a selectable element is currently selected or not.
337337
| ------- |
338338
| boolean |
339339

340-
### `importantForAccessibility` <div class="label android">Android</div>
340+
### `importantForAccessibility` <div className="label android">Android</div>
341341

342342
In the case of two 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 `auto`, `yes`, `no` and `no-hide-descendants` (the last value will force accessibility services to ignore the component and all of its children).
343343

@@ -358,15 +358,15 @@ In the case of two overlapping UI components with the same parent, default acces
358358

359359
In the above example, the `yellow` layout and its descendants are completely invisible to TalkBack and all other accessibility services. So we can use overlapping views with the same parent without confusing TalkBack.
360360

361-
### `onAccessibilityEscape` <div class="label ios">iOS</div>
361+
### `onAccessibilityEscape` <div className="label ios">iOS</div>
362362

363363
Assign this property to a custom function which will be called when someone performs the "escape" gesture, which is a two finger Z shaped gesture. An escape function should move back hierarchically in the user interface. This can mean moving up or back in a navigation hierarchy or dismissing a modal user interface. If the selected element does not have an `onAccessibilityEscape` function, the system will attempt to traverse up the view hierarchy until it finds a view that does or bonk to indicate it was unable to find one.
364364

365-
### `onAccessibilityTap` <div class="label ios">iOS</div>
365+
### `onAccessibilityTap` <div className="label ios">iOS</div>
366366

367367
Use this property to assign a custom function to be called when someone activates an accessible element by double tapping on it while it's selected.
368368

369-
### `onMagicTap` <div class="label ios">iOS</div>
369+
### `onMagicTap` <div className="label ios">iOS</div>
370370

371371
Assign this property to a custom function which will be called when someone performs the "magic tap" gesture, which is a double-tap with two fingers. A magic tap function should perform the most relevant action a user could take on a component. In the Phone app on iPhone, a magic tap answers a phone call or ends the current one. If the selected element does not have an `onMagicTap` function, the system will traverse up the view hierarchy until it finds a view that does.
372372

@@ -464,7 +464,7 @@ To handle action requests, a component must implement an `onAccessibilityAction`
464464

465465
The `AccessibilityInfo` API allows you to determine whether or not a screen reader is currently active. See the [AccessibilityInfo documentation](accessibilityinfo) for details.
466466

467-
## Sending Accessibility Events <div class="label android">Android</div>
467+
## Sending Accessibility Events <div className="label android">Android</div>
468468

469469
Sometimes it is useful to trigger an accessibility event on a UI component (i.e. when a custom view appears on a screen or set accessibility focus to a view). Native UIManager module exposes a method ‘sendAccessibilityEvent’ for this purpose. It takes two arguments: a view tag and a type of event. The supported event types are `typeWindowStateChanged`, `typeViewFocused`, and `typeViewClicked`.
470470

@@ -479,7 +479,7 @@ if (Platform.OS === 'android') {
479479
}
480480
```
481481

482-
## Testing TalkBack Support <div class="label android">Android</div>
482+
## Testing TalkBack Support <div className="label android">Android</div>
483483

484484
To enable TalkBack, go to the Settings app on your Android device or emulator. Tap Accessibility, then TalkBack. Toggle the "Use service" switch to enable or disable it.
485485

@@ -499,7 +499,7 @@ adb shell settings put secure enabled_accessibility_services com.android.talkbac
499499
adb shell settings put secure enabled_accessibility_services com.google.android.marvin.talkback/com.google.android.marvin.talkback.TalkBackService
500500
```
501501

502-
## Testing VoiceOver Support <div class="label ios">iOS</div>
502+
## Testing VoiceOver Support <div className="label ios">iOS</div>
503503

504504
To enable VoiceOver on your iOS or iPadOS device, go to the Settings app, tap General, then Accessibility. There you will find many tools available for people to enable their devices to be more usable, including VoiceOver. To enable VoiceOver, tap on VoiceOver under "Vision" and toggle the switch that appears at the top.
505505

0 commit comments

Comments
 (0)