-
Notifications
You must be signed in to change notification settings - Fork 142
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: add option to pass description to display on hover of properties #6718
base: main
Are you sure you want to change the base?
feat: add option to pass description to display on hover of properties #6718
Conversation
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ibm-products-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6718 +/- ##
=======================================
Coverage 80.76% 80.76%
=======================================
Files 397 397
Lines 12970 12976 +6
Branches 4296 4298 +2
=======================================
+ Hits 10475 10480 +5
- Misses 2495 2496 +1
|
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.
looks good. one change requested and can you please add any additional tests that are required for codecov? thanks!
...rest | ||
}: ConditionBuilderButtonProps) => { | ||
const [tooltipText, setTooltipText] = useState(label); |
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.
this doesn't need to be set in state. you should be able to derive the value directly from props. tooltipText = description || label;
Closes #6717
Need to pass an optional description along with input properties and need to display that on mouse hover of property field
What did you change?
Added a description property to the input config to display on hover/focus of property field
How did you test and verify your work?
local