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

Making gesture views accessibile #196

Merged

Conversation

RamyaSenk
Copy link
Contributor

Currently we cannot recognise swipe and pan gestures when screen reader is enabled. Making gesture views implement accessibility properties. Also making gesture views accessible by default because it is associated with actions done on the view - which should almost always be accessible. Similar to button behaviour.

You can test these gestures by long pressing on the gesture view and performing the gesture like swipe and pan.

…esture views. Also make gesture views accessible by default as it generally always has actions that can be perfomed on them by the users. and hence needs to b exposed to screen readers as well
@msftclas
Copy link

msftclas commented Aug 4, 2017

@RamyaSenk,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Copy link
Contributor

@erictraut erictraut left a comment

Choose a reason for hiding this comment

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

Please update the "accessibility.md" documentation to indicate that GestureView (in addition to View, Button and TextInput) supports the common accessibility props.

Is there anything that needs to be done on the web implementation of GestureView?

return (
<RN.View
style={ this._getStyles(this.props) }
style={this._getStyles(this.props)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add spaces within the curly brackets to be consistent with all other code in ReactXP.

Copy link
Contributor Author

@RamyaSenk RamyaSenk Aug 4, 2017

Choose a reason for hiding this comment

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

Done. Updated it.

@RamyaSenk
Copy link
Contributor Author

Thanks @erictraut

I have updated the document and fixed spaces. I missed web, have implemented accessibility props in there as well.

@erictraut erictraut merged commit 17c6567 into microsoft:master Aug 4, 2017
berickson1 pushed a commit to berickson1/reactxp that referenced this pull request Oct 22, 2018
* Makign Gesture view accessibility property to true

* Exposing accessibility property in gesture view

* Making gesture Views accessibile. Expose the accessibility props in gesture views. Also make gesture views accessible by default as it generally always has actions that can be perfomed on them by the users. and hence needs to b exposed to screen readers as well

* Removing gesture dist file

* Updating documentation
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