Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

amal-k-joy
Copy link
Contributor

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

@amal-k-joy amal-k-joy requested a review from a team as a code owner January 16, 2025 09:38
@amal-k-joy amal-k-joy requested review from AlexanderMelox and sangeethababu9223 and removed request for a team January 16, 2025 09:38
Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit ca02d4c
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/6788e77167fbc80008e54506
😎 Deploy Preview https://deploy-preview-6718--carbon-for-ibm-products.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for ibm-products-web-components ready!

Name Link
🔨 Latest commit ca02d4c
🔍 Latest deploy log https://app.netlify.com/sites/ibm-products-web-components/deploys/6788e7710d0a240008ebe1c3
😎 Deploy Preview https://deploy-preview-6718--ibm-products-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 80.76%. Comparing base (d3a40e7) to head (ca02d4c).

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     
Components Coverage Δ
ibm-products ∅ <ø> (∅)
ibm-products-web-components ∅ <ø> (∅)

Copy link
Contributor

@davidmenendez davidmenendez left a 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);
Copy link
Contributor

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Display an optional description on hover of property field as passed by the user
2 participants