-
Notifications
You must be signed in to change notification settings - Fork 62
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
[FC-131196]: Add optional tooltip for input field to support AMB device capabilities #960
Conversation
…ow tooltip for AMB fields Based on the properties passed from unity_
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
@prasanna-vijayan Please check this!
@@ -119,6 +119,10 @@ $warning-color: $color-casablanca-300; | |||
background-color: $input-disabled-bg; | |||
pointer-events: none; | |||
} | |||
|
|||
&.truncate { |
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.
Shouldnt we add overflow: hidden and white-space: nowrap to show the ellipsis?
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.
Ellipsis is working, without the overflow: hidden
and white-space: nowrap
styles being added explicitly.
Business usecase: For AMB Device Capabilities field, need to add tooltip to show the expanded content of the field on hover of the input field value.
Solution: Add provision to show tooltip on hover of the input fields --> Added support for an optional tooltip feature in crayons. Passed props from unity_frontend to the crayons repo, during the form schema construction, for the AMB device capabilities field.
FR link - https://freshworks.freshrelease.com/ws/FC/tasks/FC-131196
User story - https://freshworks.freshrelease.com/ws/FC/tasks/FC-109926
Checklist:
How Has This Been Tested?
1. Tooltip with header and mapped values:
2. Ellipsis shown for overflowing text:
Screen.Recording.2025-01-07.at.10.25.12.AM.mov