Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(createComponent): add styles and accessibility props #714

Merged
merged 4 commits into from
Jan 14, 2019

Conversation

kuzhelov
Copy link
Contributor

@kuzhelov kuzhelov commented Jan 14, 2019

TODO

  • update CHANGELOG

This PR introduces styles and accessibility support to the public API of createComponent function - as these props were proven to be useful for the client.

},
render: ({stardust, className, children}) => {
const { classes, accessibility } = stardust
return <button {...accessibility.root} className={classes.root}>{children}</button>
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be {...accessibility.attributes.root}?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thank you!

@kuzhelov kuzhelov merged commit e265ca1 into master Jan 14, 2019
@kuzhelov kuzhelov deleted the feat/add-accessibility-and-styles-to-api branch January 14, 2019 14:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants