-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[docs] Add GlobalStyles API #25191
[docs] Add GlobalStyles API #25191
Conversation
e1b2e33
to
458b278
Compare
styles: PropTypes.oneOfType([ | ||
PropTypes.func, | ||
PropTypes.number, | ||
PropTypes.object, | ||
PropTypes.shape({ | ||
__emotion_styles: PropTypes.any.isRequired, | ||
}), | ||
PropTypes.string, | ||
PropTypes.bool, | ||
]), |
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 follow-up in the PR description should address this.
@@ -1,3 +1,7 @@ | |||
--- | |||
components: GlobalStyles |
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.
Haha, smart, I actually wonder if you would have gone this far
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.
I don't follow. That's what we do for every component?
I'm actually planning to warn/throw if a component has no demos mentioned.
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.
True, I'm simply glad you thought to add it here. I forgot this when I first review the PR.
Follow-up:
styles
type is likely too wide right now e.g. what is<GlobalStyles styles={false} />
supposed to do?