-
Notifications
You must be signed in to change notification settings - Fork 146
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: adding the ability to disable modals for TagSet component #5753
feat: adding the ability to disable modals for TagSet component #5753
Conversation
DCO Assistant Lite bot All contributors have signed the DCO. |
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I have read the DCO document and I hereby sign the DCO. |
recheck |
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
Hey @jeesonjohnson, someone will review this PR after the team has triaged the related issue (#5726). Thanks for your patience! 😄 |
Sounds good, thanks for the update @matthewgallo! |
@jeesonjohnson can you please resolve the merge conflicts? thanks! |
Hey @davidmenendez, gone ahead and resolved the merge conflicts. |
Hey @jeesonjohnson, After these changes, I am wondering how you could set the onClick on the overflow tag to show your custom modal. You still need to access the dom directly, get the overflow tag, and attach an onClick event listener. which isn't a good approach in a react-handled application. also, it could be a mess targeting a tagset if there are multiple of them on the page. instead of introducing
and in TagSetOverflow.jsx
Now if cc: @davidmenendez any second thoughts/suggestions on this? |
Hey @davidmenendez! Here is a quick video of the above feature working as expected: main2.mov |
@jeesonjohnson can you fix the spell checks? |
@davidmenendez Done! :) |
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 all your hard work! just a few things i noticed
✅ Deploy Preview for ibm-products-web-components canceled.
|
Thanks for @davidmenendez . I have gone ahead and addressed all the comments. Mind having another look please? |
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.
LGTM
29e960c
Closes #5726
Added the ability to disable the overflow modal for additional tags. This gives consumers the customisability to use their component to manage and view tags.
What did you change?
packages/ibm-products/src/components/TagSet/TagSet.stories.jsx
packages/ibm-products/src/components/TagSet/TagSet.test.js
packages/ibm-products/src/components/TagSet/TagSet.tsx
packages/ibm-products/src/components/TagSet/TagSetOverflow.tsx
How did you test and verify your work?
Added additional unit tests
Visual testing:
Screen.Recording.2024-07-29.at.14.18.06.mov