-
Notifications
You must be signed in to change notification settings - Fork 358
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(chipGroup): add heading level prop to toolbar chip group label #2278
Conversation
PatternFly-React preview: https://2278-pr-patternfly-react-patternfly.surge.sh |
Codecov Report
@@ Coverage Diff @@
## master #2278 +/- ##
========================================
Coverage ? 80.6%
========================================
Files ? 666
Lines ? 8441
Branches ? 720
========================================
Hits ? 6804
Misses ? 1274
Partials ? 363
Continue to review full report at Codecov.
|
packages/patternfly-4/react-core/src/components/ChipGroup/ChipGroupToolbarItem.tsx
Outdated
Show resolved
Hide resolved
PatternFly-React preview: https://patternfly-react-pr-2278.surge.sh |
The prop works as expected! 🎉 The only question I have is whether the prop should move to the parent With the Accordion component, we discussed this and ended up supporting the prop on the parent I would think that same reason is true in this case, but am curious if anyone has some reason for supporting this prop on the I'm pulling in @mturley because he had provided suggestions on how to implement this for Accordion, and might have relevant info that would be helpful to share for this case as well. |
packages/patternfly-4/react-core/src/components/ChipGroup/ChipGroupToolbarItem.tsx
Outdated
Show resolved
Hide resolved
packages/patternfly-4/react-core/src/components/Title/Title.tsx
Outdated
Show resolved
Hide resolved
@boaz0, I agree with @jgiardino that we should probably have the consumer pass one @jenny-s51 implemented this for Accordion using React's Context API in this PR: https://github.com/patternfly/patternfly-react/pull/2290/files. Basically in the ChipGroup component you'd accept If you need any help, feel free to let me know! |
@mturley no problem I will be working on this. |
@mturley updated PR feel free to review and give some feedback. |
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.
Thanks for your quick update @boaz0 ! Your actual changes look great, I'm just a little obsessed with code style today.
packages/patternfly-4/react-core/src/components/ChipGroup/ChipGroupToolbarItem.tsx
Outdated
Show resolved
Hide resolved
packages/patternfly-4/react-core/src/components/ChipGroup/ChipGroup.tsx
Outdated
Show resolved
Hide resolved
packages/patternfly-4/react-core/src/components/ChipGroup/ChipGroupToolbarItem.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Boaz Shuster <[email protected]>
@mturley thanks a lot! Would you mind reviewing this again? |
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/patternfly-4/react-core/src/components/ChipGroup/ChipGroupToolbarItem.tsx
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.
LGTM
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 have the same question as Joachim
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
Thank you all |
What:
closes #2167
HeadingLevel type was moved fromTitle
tohelpers
Chip Group Toolbar Item is using HeadingLevel type in its own heading level prop