-
Notifications
You must be signed in to change notification settings - Fork 4k
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(StatisticGroup): add color, size, and inverted examples #1058
docs(StatisticGroup): add color, size, and inverted examples #1058
Conversation
Current coverage is 95.82% (diff: 100%)
|
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.
Lookin' great! Left a couple minor comments.
const StatisticExampleGroupColored = () => ( | ||
<div> | ||
<Statistic.Group items={items} color='blue' /> | ||
</div> |
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.
Since there is only one element here, let's forgo the extra div
wrapper and just return the <Statistic.Group />
itself.
] | ||
|
||
const StatisticExampleGroupInverted = () => ( | ||
<div> |
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.
Same here, let's drop the extra div
.
@levithomason removed the extra divs from the components. |
Perfect! |
Thanks so much @levithomason I'll start looking at some more issues! |
Awesome, we try to keep good labeling practices. I'd suggest looking at |
This PR adds documentation for Statistic Group examples for
color
,size
, andinverted
props.