-
Notifications
You must be signed in to change notification settings - Fork 45
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
Clipboard
& Copy Button
- Fix handling of empty string and zero values (HDS-4447)
#2685
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
@KristinLBradley left a few comments; let me know if you want to discuss them in a call if it's not clear or doesn't makes sense to you what I'm suggesting
showcase/tests/integration/components/hds/copy/button/index-test.js
Outdated
Show resolved
Hide resolved
showcase/tests/integration/components/hds/copy/button/index-test.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Cristiano Rastelli <[email protected]>
… and remove test for passing undefined value
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.
left a comment around missing showcase use cases for Copy::Snippet
. Apart from that, everything is fine for me
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 👍
Nice job! 👏
📌 Summary
If merged, this PR adds a fix to allow empty strings and zero number values passed into the Copy Button to copy the values.
🛠️ Detailed description
🔗 External links
👀 Component checklist
💬 Please consider using conventional comments when reviewing this PR.