-
Notifications
You must be signed in to change notification settings - Fork 352
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
feat(Toggle group): Add support for icon position #10291
Conversation
Preview: https://patternfly-react-pr-10291.surge.sh A11y report: https://patternfly-react-pr-10291-a11y.surge.sh |
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.
💯
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
packages/react-core/src/components/ToggleGroup/ToggleGroupItem.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.
A few quick changes below.
Not a blocker, but an example description would be good to add in as well. Maybe something like, "When passing both the text
and icon
properties into a <ToggleGroupItem>
, you can also pass in the iconPosition
property to determine whether the icon is rendered at the start or end of the item." cc @edonehoo. We could also just open a followup to add descriptions for all ToggleGroup examples since there's not a lot of them, though.
packages/react-core/src/components/ToggleGroup/examples/ToggleGroupTextIcon.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/ToggleGroup/examples/ToggleGroupTextIcon.tsx
Outdated
Show resolved
Hide resolved
packages/react-core/src/components/ToggleGroup/ToggleGroupItem.tsx
Outdated
Show resolved
Hide resolved
@thatblindgeye oo yeah let's do a followup and I can got ahead and fill out the whole page! |
Your changes have been released in:
Thanks for your contribution! 🎉 |
What: Closes #10059