Skip to content

Commit c9448b0

Browse files
add documentation for aria-valuemax aria-valuemin aria-valuenow aria-valuetext (facebook#3318)
1 parent 54f9a7d commit c9448b0

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed

docs/accessibility.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,22 @@ A Boolean value indicating whether the accessibility elements contained within t
204204

205205
For example, in a window that contains sibling views `A` and `B`, setting `accessibilityElementsHidden` to `true` on view `B` causes VoiceOver to ignore the elements in the view `B`. This is similar to the Android property `importantForAccessibility="no-hide-descendants"`.
206206

207+
### `aria-valuemax`
208+
209+
Represents the maximum value for range-based components, such as sliders and progress bars.
210+
211+
### `aria-valuemin`
212+
213+
Represents the maximum value for range-based components, such as sliders and progress bars.
214+
215+
### `aria-valuenow`
216+
217+
Represents the current value for range-based components, such as sliders and progress bars.
218+
219+
### `aria-valuetext`
220+
221+
Repersents the textual description of the component.
222+
207223
### `aria-modal` <div class="label ios">iOS</div>
208224

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

docs/touchablewithoutfeedback.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,46 @@ See the [Accessibility guide](accessibility.md#accessibilityvalue-ios-android) f
219219

220220
---
221221

222+
### `aria-valuemax`
223+
224+
Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `max` value in the `accessibilityValue` prop.
225+
226+
| Type |
227+
| ------ |
228+
| number |
229+
230+
---
231+
232+
### `aria-valuemin`
233+
234+
Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `min` value in the `accessibilityValue` prop.
235+
236+
| Type |
237+
| ------ |
238+
| number |
239+
240+
---
241+
242+
### `aria-valuenow`
243+
244+
Represents the current value for range-based components, such as sliders and progress bars. Has precedence over the `now` value in the `accessibilityValue` prop.
245+
246+
| Type |
247+
| ------ |
248+
| number |
249+
250+
---
251+
252+
### `aria-valuetext`
253+
254+
Repersents the textual description of the component. Has precedence over the `text` value in the `accessibilityValue` prop.
255+
256+
| Type |
257+
| ------ |
258+
| string |
259+
260+
---
261+
222262
### `delayLongPress`
223263

224264
Duration (in milliseconds) from `onPressIn` before `onLongPress` is called.

docs/view.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,44 @@ When `true`, indicates that the view is an accessibility element. By default, al
249249

250250
---
251251

252+
### `aria-valuemax`
253+
254+
Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `max` value in the `accessibilityValue` prop.
255+
256+
| Type |
257+
| ------ |
258+
| number |
259+
260+
---
261+
262+
### `aria-valuemin`
263+
264+
Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `min` value in the `accessibilityValue` prop.
265+
266+
| Type |
267+
| ------ |
268+
| number |
269+
270+
---
271+
272+
### `aria-valuenow`
273+
274+
Represents the current value for range-based components, such as sliders and progress bars. Has precedence over the `now` value in the `accessibilityValue` prop.
275+
276+
| Type |
277+
| ------ |
278+
| number |
279+
280+
---
281+
282+
### `aria-valuetext`
283+
284+
Represents the textual description of the component. Has precedence over the `text` value in the `accessibilityValue` prop.
285+
286+
| Type |
287+
| ------ |
288+
| string |
289+
252290
### `aria-modal` <div class="label ios">iOS</div>
253291

254292
Boolean value indicating whether VoiceOver should ignore the elements within views that are siblings of the receiver. Has precedence over the `accessibilityViewIsModal` prop.

0 commit comments

Comments
 (0)