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

Chore/update discoverydropdowntag #1123

Closed

Conversation

divyaocc
Copy link

Added code for tooltip info button right next to each study filter category with additional data in DiscoveryDropdownTagViewer.tsx file under uc-cdis/data-portal/src/Discovery.

<Col >
<Tooltip
placement='left'
overlay={category.tooltip}
Copy link
Contributor

Choose a reason for hiding this comment

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

the tooltip field should be added to the docs at docs/portal_config.md

Copy link
Author

Choose a reason for hiding this comment

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

I added tooltip": "additional data", // optional string to add data when hovered on the info button at portal_config.md

Copy link
Collaborator

@mfshao mfshao left a comment

Choose a reason for hiding this comment

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

should also add similar feature into https://github.com/uc-cdis/data-portal/blob/master/src/Discovery/DiscoveryTagViewer.tsx because they are basically the same thing with different appearences

overlay={category.tooltip}
overlayClassName='g3-filter-section__and-or-toggle-helper-tooltip'
arrowContent={<div className='rc-tooltip-arrow-inner' />}
width='300px'
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't hard code this

</Tooltip>
</Col>
</td>
<td width='500px' >
Copy link
Collaborator

Choose a reason for hiding this comment

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

and this

src/Discovery/DiscoveryDropdownTagViewer.tsx Outdated Show resolved Hide resolved
@ocshawn
Copy link
Contributor

ocshawn commented May 25, 2023

closing to cleanup prs if this is still an issue please address above cements and reopen

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.

4 participants