Add support for 'accessible' prop

This commit is contained in:
Nicolas Gallagher
2015-09-07 22:09:16 -07:00
parent 65559f50e6
commit 2750d70a93
7 changed files with 39 additions and 11 deletions

View File

@@ -7,7 +7,11 @@ and child content.
**accessibilityLabel** string
The text that's read by the screen reader when the user interacts with the image.
The text that's read by a screenreader when someone interacts with the image.
**accessible** bool
When `false`, the view is hidden from screenreaders. Default: `true`.
**children** any

View File

@@ -6,6 +6,15 @@ the wrapped view can be decreased.
## Props
**accessibilityLabel** string
Overrides the text that's read by the screen reader when the user interacts
with the element.
**accessible** bool
When `false`, the view is hidden from screenreaders. Default: `true`.
**activeHighlight** string
Sets the color of the background highlight when `onPressIn` is called. The

View File

@@ -11,16 +11,22 @@ NOTE: `View` will transfer all other props to the rendered HTML element.
**accessibilityLabel** string
Overrides the text that's read by the screen reader when the user interacts
with the element. This is implemented using `aria-label`.
with the element. (This is implemented using `aria-label`.)
**accessible** bool
When `false`, the view is hidden from screenreaders. Default: `true`. (This is
implemented using `aria-hidden`.)
**component** function, string
Default is `div`.
Default: `div`.
**pointerEvents** oneOf('auto', 'box-only', 'box-none', 'none')
We deviate from the CSS spec by supporting additional `pointerEvents` modes,
therefore `pointerEvents` is excluded from `style`.
Configure the `pointerEvents` of the view. The enhanced `pointerEvents` modes
provided are not part of the CSS spec, therefore, `pointerEvents` is excluded
from `style`.
`box-none` is the equivalent of: