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

add tooltip component #484

Merged
merged 2 commits into from
May 26, 2021
Merged

add tooltip component #484

merged 2 commits into from
May 26, 2021

Conversation

ShaiahWren
Copy link
Contributor

Hi, Zita && Martin :)
Here is a pr for issue:
https://issues.redhat.com/browse/AAH-554

Just adding a tooltip for the descriptions. I did not differentiate between those visibly overflowing and those not.
Screen Shot 2021-05-25 at 2 29 04 PM
Screen Shot 2021-05-25 at 2 06 49 PM

<Tooltip
content={
<div>
{this.getDescription(latest_version.metadata.description)}
Copy link
Collaborator

@himdel himdel May 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getDescription is the function that's truncating the contents ... so right now you get the same shortened description in both the tooltip and the card ... this one should just be latest_version.metadata.description without the method call.

(Also no need for the <div> once #472 gets merged, but it's not merged yet so we do need it for now.)

Copy link
Collaborator

@himdel himdel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I can see the full tooltip now 👍 :)

20210526135840

@ShaiahWren ShaiahWren merged commit 56b2409 into ansible:master May 26, 2021
@ShaiahWren
Copy link
Contributor Author

pr closed.

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.

None yet

2 participants