-
Notifications
You must be signed in to change notification settings - Fork 605
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
Move disk explanations to popovers #5939
Move disk explanations to popovers #5939
Conversation
@suomiy @yaacov @matthewcarleton Please take a look. Thanks! |
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.
it looks so much better with the text in the popover :)
Just a few small things - thanks for doing this!
@@ -3,3 +3,7 @@ | |||
padding-right: 30px; | |||
margin-top: 20px; | |||
} | |||
|
|||
button#kubevirt-vm-details__file-systems--info-icon { |
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.
I'd remove this padding and just use the default spacing from PF. It's better accessibility with a larger touch area.
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.
If I remove the padding, there is no space between the icon and the header text.
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.
If you switch it to a plain modifier and drop the inline variant you should get the proper spacing.
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.
Done!
@@ -3,3 +3,7 @@ | |||
padding-right: 30px; |
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.
can you use PF spacer variables here?
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.
We should be able to. I'll take a look at it.
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.
Done!
position="top" | ||
bodyContent={<>{GUEST_AGENT_FILE_SYSTEMS_DESCRIPTION}</>} | ||
> | ||
<Button variant="link" id="kubevirt-vm-details__file-systems--info-icon" isInline> |
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.
is this ID needed?
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.
I needed it to override the PF settings that set the padding to 0px.
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.
Removed!
@@ -0,0 +1,3 @@ | |||
button#kubevirt-vm-details__disks--info-icon { |
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.
remove this one too :)
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.
Done!
position="top" | ||
bodyContent={<>{VM_DISKS_DESCRIPTION}</>} | ||
> | ||
<Button variant="link" id="kubevirt-vm-details__disks--info-icon" isInline> |
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.
variant should be plain
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.
Done!
position="top" | ||
bodyContent={<>{GUEST_AGENT_FILE_SYSTEMS_DESCRIPTION}</>} | ||
> | ||
<Button variant="link" id="kubevirt-vm-details__file-systems--info-icon" isInline> |
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.
does it need isInline
?
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.
Removed!
bodyContent={<>{GUEST_AGENT_FILE_SYSTEMS_DESCRIPTION}</>} | ||
> | ||
<Button variant="link" id="kubevirt-vm-details__file-systems--info-icon" isInline> | ||
<BlueInfoCircleIcon /> |
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.
this should be a grey (?)
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.
I can change it. The only concern I have is that this came out of the console-shared package and there is no grey info icon that I can find there. The only place the blue one is used is for the guest agent missing message, but it doesn't appear that it was added for that purpose since it was there before that PR was created.
Do you know if we have a standard for the colors of these icons or somewhere else in console where they're used?
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.
I was looking at the Deployments>environment tab and I see the proper icon there.
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.
Icon updated!
96ac1d3
to
53fa28c
Compare
looks great! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pcbailey, suomiy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
This PR moves the explanations for Disk and File Systems in the Disks tab to popovers to remove the visual clutter from the page.
Popover not activated:
Popover activated: