-
Notifications
You must be signed in to change notification settings - Fork 356
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
chore(Toolbar): add different gap props to examples #11440
base: main
Are you sure you want to change the base?
Conversation
Preview: https://patternfly-react-pr-11440.surge.sh A11y report: https://patternfly-react-pr-11440-a11y.surge.sh |
packages/react-core/src/components/Toolbar/examples/ToolbarSpacers.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/Toolbar/examples/ToolbarSpacers.tsx
Outdated
Show resolved
Hide resolved
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 would maybe rather see us have these examples a bit DRYer, but I could also see a good argument for keeping it as is, so not a blocker.
b075c2a
to
f6b2190
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! A couple of questions:
- I wonder if "Toolbar item spacers" would be better as "Toolbar spacers", especially since you have examples of using spacers on toolbar items now, too.
- I see
variant="action-group"
on most of the<ToolbarGroup />
s, I'm curious if there is a reason to use that over no variant? I'd consider no variant the default for example/demo purposes, but there are buttons in the example, and action-group is probably best for buttons. - I think the headings and hwhat-not could use some love. I wonder if this would be a good use case for subheadings? That would probably be a separate issue, but like the html docs for table. Maybe something like:
## Toolbar spacers
[...existing blurb]
### Toolbar group spacers
[gap]
[column gap]
[row gap]
### Toolbar item spacers
[gap]
[column gap]
[row gap]
c595773
to
fefa4b4
Compare
@mcoker agreed on the title change, i changed it. i also removed the action groups because you're right, why overcomplicate the example. |
What: Closes #10432