-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove accessibilityComponentType and accessibilityTraits props #873
Merged
cpojer
merged 1 commit into
facebook:master
from
estevaolucas:chore/a11y-remove-old-props
Apr 17, 2019
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,16 +69,18 @@ For `View` responder props (e.g., `onResponderMove`), the synthetic touch event | |
- [`pointerEvents`](view.md#pointerevents) | ||
- [`removeClippedSubviews`](view.md#removeclippedsubviews) | ||
- [`style`](view.md#style) | ||
- [`testID`](view.md#testid) | ||
- [`accessibilityComponentType`](view.md#accessibilitycomponenttype) | ||
- [`testID`](view.md#testid) <<<<<<< Updated upstream | ||
- # [`accessibilityComponentType`](view.md#accessibilitycomponenttype) | ||
> > > > > > > Stashed changes | ||
- [`accessibilityLiveRegion`](view.md#accessibilityliveregion) | ||
- [`collapsable`](view.md#collapsable) | ||
- [`importantForAccessibility`](view.md#importantforaccessibility) | ||
- [`needsOffscreenAlphaCompositing`](view.md#needsoffscreenalphacompositing) | ||
- [`renderToHardwareTextureAndroid`](view.md#rendertohardwaretextureandroid) | ||
- [`accessibilityRole`](view.md#accessibilityrole) | ||
- [`accessibilityStates`](view.md#accessibilitystates) | ||
- [`accessibilityTraits`](view.md#accessibilitytraits) | ||
- [`accessibilityStates`](view.md#accessibilitystates) <<<<<<< Updated upstream | ||
- # [`accessibilityTraits`](view.md#accessibilitytraits) | ||
> > > > > > > Stashed changes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't look right, @elucaswork can you look at this? |
||
- [`accessibilityViewIsModal`](view.md#accessibilityviewismodal) | ||
- [`accessibilityElementsHidden`](view.md#accessibilityElementsHidden) | ||
- [`accessibilityIgnoresInvertColors`](view.md#accessibilityIgnoresInvertColors) | ||
|
@@ -376,25 +378,6 @@ Used to locate this view in end-to-end tests. | |
|
||
--- | ||
|
||
### `accessibilityComponentType` | ||
|
||
_> Note: `accessibilityComponentType`will soon be deprecated. When possible, use `accessibilityRole` and `accessibilityStates` instead._ | ||
|
||
Indicates to accessibility services to treat UI component like a native one. Works for Android only. | ||
|
||
Possible values are one of: | ||
|
||
- `'none'` | ||
- `'button'` | ||
- `'radiobutton_checked'` | ||
- `'radiobutton_unchecked'` | ||
|
||
| Type | Required | Platform | | ||
| --------------------------- | -------- | -------- | | ||
| AccessibilityComponentTypes | No | Android | | ||
|
||
--- | ||
|
||
### `accessibilityLiveRegion` | ||
|
||
Indicates to accessibility services whether the user should be notified when this view changes. Works for Android API >= 19 only. Possible values: | ||
|
@@ -466,8 +449,6 @@ On Android, this is useful for animations and interactions that only modify opac | |
|
||
### `accessibilityRole` | ||
|
||
_> Note: `AccessibilityRole` and `AccessibilityStates` are meant to be a cross-platform solution to replace `accessibilityTraits` and `accessibilityComponentType`, which will soon be deprecated. When possible, use `accessibilityRole` and `accessibilityStates` instead of `accessibilityTraits` and `accessibilityComponentType`._ | ||
|
||
Tells the screen reader to treat the currently focused on element as having a specific role. | ||
|
||
Possible values for `AccessibilityRole` is one of: | ||
|
@@ -496,8 +477,6 @@ On Android, these roles have similar functionality on TalkBack as adding Accessi | |
|
||
### `accessibilityStates` | ||
|
||
_> Note: `AccessibilityRole` and `AccessibilityStates` are meant to be a cross-platform solution to replace `accessibilityTraits` and `accessibilityComponentType`, which will soon be deprecated. When possible, use `accessibilityRole` and `accessibilityStates` instead of `accessibilityTraits` and `accessibilityComponentType`._ | ||
|
||
Tells the screen reader to treat the currently focused on element as being in a specific state. | ||
|
||
You can provide one state, no state, or both states. The states must be passed in through an array. Ex: ['selected'] or ['selected', 'disabled'] | ||
|
@@ -513,42 +492,6 @@ Possible values for `AccessibilityStates` are: | |
|
||
--- | ||
|
||
### `accessibilityTraits` | ||
|
||
_> Note: `accessibilityTraits` will soon be deprecated. When possible, use `accessibilityRole` and `accessibilityStates` instead._ | ||
|
||
Provides additional traits to screen reader. By default no traits are provided unless specified otherwise in element. | ||
|
||
You can provide one trait or an array of many traits. | ||
|
||
Possible values for `AccessibilityTraits` are: | ||
|
||
- `'none'` - The element has no traits. | ||
- `'button'` - The element should be treated as a button. | ||
- `'link'` - The element should be treated as a link. | ||
- `'header'` - The element is a header that divides content into sections. | ||
- `'search'` - The element should be treated as a search field. | ||
- `'image'` - The element should be treated as an image. | ||
- `'selected'` - The element is selected. | ||
- `'plays'` - The element plays sound. | ||
- `'key'` - The element should be treated like a keyboard key. | ||
- `'text'` - The element should be treated as text. | ||
- `'summary'` - The element provides app summary information. | ||
- `'disabled'` - The element is disabled. | ||
- `'frequentUpdates'` - The element frequently changes its value. | ||
- `'startsMedia'` - The element starts a media session. | ||
- `'adjustable'` - The element allows adjustment over a range of values. | ||
- `'allowsDirectInteraction'` - The element allows direct touch interaction for VoiceOver users. | ||
- `'pageTurn'` - Informs VoiceOver that it should scroll to the next page when it finishes reading the contents of the element. | ||
|
||
See the [Accessibility guide](accessibility.md#accessibilitytraits-ios) for more information. | ||
|
||
| Type | Required | Platform | | ||
| -------------------------------------------------- | -------- | -------- | | ||
| AccessibilityTraits, ,array of AccessibilityTraits | No | iOS | | ||
|
||
--- | ||
|
||
### `accessibilityViewIsModal` | ||
|
||
A value indicating whether VoiceOver should ignore the elements within views that are siblings of the receiver. Default is `false`. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right, @elucaswork can you look at this?