-
Notifications
You must be signed in to change notification settings - Fork 373
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 style context #1652
Add style context #1652
Conversation
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.
Looks pretty good! However we need two changes:
- We should export the new context via the index so it can be easily used ;)
useStyles
should contain a fallback to consume the regular context styles if there aren't any in theStyleContext
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.
The testcases currently fail. Can you have a look?
Rename style to styles Use StyleContext instead of core styles Rename useStyle to useStyles and call it unconditional Add fallback, export StyleContext and fix function name Fix reference
5dec83b
to
4210b56
Compare
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.
LGTM
Related issue: #1537