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

update(withIcon): Throw dev error if an ally prop is missing. #84

Merged

Conversation

stefhatcher
Copy link
Contributor

to: @milesj @stefhatcher @hayes @alecklandgraf

Description

Adding a dev error.

'Missing `accessibilityLabel` or `decorative` for accessibility.

Motivation and Context

Seeing Icons in PRs without an a11y prop. This used to throw an error? Needs an error.

Testing

Added tests.

Screenshots

Checklist

  • My code follows the style guide of this project.
  • I have updated or added documentation accordingly.
  • I have read the CONTRIBUTING document.

@stefhatcher stefhatcher merged commit 75acae5 into master Jun 7, 2019
@stefhatcher stefhatcher deleted the stefanie--add-dev-error-when-missing-accessibility-props branch June 7, 2019 21:16
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.

2 participants