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

UI – Place all TooltipWrapper tooltips on the bottom #19002

Merged
merged 5 commits into from
May 24, 2024

Conversation

jacobshandling
Copy link
Contributor

@jacobshandling jacobshandling commented May 14, 2024

Addresses #18741

Screenshot 2024-05-14 at 3 26 20 PM
  • Changes file added for user-visible changes in changes/,
  • Manual QA for all new/changed functionality

@jacobshandling jacobshandling requested a review from a team as a code owner May 14, 2024 22:49
@jacobshandling jacobshandling changed the title UI – Place all TooltipWrapper tooltips on the bottom UI – Place all TooltipWrapper tooltips on the bottom May 14, 2024
@@ -48,7 +48,6 @@ export const generateSolutionsTableHeaders = (
Header: (): JSX.Element => {
const titleWithToolTip = (
<TooltipWrapper
position="top-start"
Copy link
Member

Choose a reason for hiding this comment

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

@rachaelshaw I thought design wanted all table headers to have tooltips above the table (current behavior, see screenshot). Are we changing table header tooltips to be below the table header?

Screenshot of current behavior:
Screenshot 2024-05-15 at 10 14 47 AM

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, why move tooltips to below for form fields? Doesn't that obscure the field and make it difficult for an end user to click into the field and start typing.

Copy link
Member

Choose a reason for hiding this comment

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

@gillespi314 that's my opinion too

This is @rachaelshaw 's response

Which I distinctly remember a conversation having them above the table headers so they don't block the table, but now I see the comment to move all tooltips below

Copy link
Member

Choose a reason for hiding this comment

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

@gillespi314 that's a problem with tooltips in form fields no matter the placement (if it's above, it covers the field above; people don't always fill things out in order).

I think I'm going to make a feature request for an alternative, because I'm not a huge fan of using tooltips as help text and tbh I'm getting tired of debating which form content we should cover up; I don't think we should obscure any of the form, and you should be able to see the help text at the same time you fill out the field.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh well. For me, tooltips below the element are more disruptive to the reader's flow when scanning down the page. C'est la vie.

@@ -56,10 +56,7 @@ export const generateStatusTableHeaders = (teamId?: number): IDataColumn[] => [
!MDM_STATUS_TOOLTIP[status] ? (
<TextCell value={status} />
) : (
<TooltipWrapper
position="top-start"
Copy link
Member

Choose a reason for hiding this comment

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

Same question for product as below

@@ -61,7 +61,6 @@ const SoftwareVulnSummary = ({
<TooltipWrapper
tipContent="The worst case impact across different environments (CVSS base score). This data is reported by the National Vulnerability Database (NVD)."
// to match neighboring tooltip wrapper
position="top-start"
Copy link
Member

Choose a reason for hiding this comment

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

@rachaelshaw qq: Are we changing these to be below as well? I thought the ticket only said for form fields? (see current behavior recording)

Current behavior:

Screen.Recording.2024-05-15.at.10.20.35.AM.mov

Copy link
Member

@RachelElysia RachelElysia left a comment

Choose a reason for hiding this comment

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

@rachaelshaw @jacobshandling This PR places various tooltips to the bottom (including some table headers and data set headers) instead of just form fields tooltips. If that's the confirmed product decision, the Issue should be updated as such, but as of right now there's a mismatch with the issue description and the PR changes.

RachelElysia
RachelElysia previously approved these changes May 15, 2024
Copy link
Member

@RachelElysia RachelElysia left a comment

Choose a reason for hiding this comment

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

Approving after confirming product/design decided ALL tooltips should be positioned below the hoverable text.

@jacobshandling jacobshandling merged commit c73904e into main May 24, 2024
9 checks passed
@jacobshandling jacobshandling deleted the 18741-tooltip-positions branch May 24, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants