Skip to content
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

Add accessibility traits #76

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

luisfmsouza
Copy link

What

Add accessibility props to make our button more accessible on both OSs.

Why

VoiceOver and TalkBack need this props to inform the users what kind of component is this one. With this prop we can use button, link, etc.

    In order to make the CI green again.

    We had to upgrade the packages:
    - jest
    - react
    - react-test-renderer
Libraries that modifies native props using the reference (e.g. [styled-components](https://github.com/styled-components/styled-components)) need to know what component represent the button. Those kind of modifications are made using the method `setNativeProps`, therefore, this commit implements the references to wrappers which represent the button styles and implement the setNativeProps method at the Button component.
@rajashekarmakam
Copy link

How can we get this merged into master branch ? I need this feature since I'm writing automated script for the app and accessiblityLabel is not visible using Appium Inspector.

@@ -1,6 +1,6 @@
'use strict';
"use strict";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change all the files with singlequote as specified on eslint rules?

@Moreno97
Copy link
Collaborator

Moreno97 commented Oct 19, 2018

Hi @luisfmsouza !! Thanks for your PR, can you update the Readme docs with the new props and rebase commits?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants