-
Notifications
You must be signed in to change notification settings - Fork 32
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 tooltips for bookmark and edit path buttons #647
Conversation
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.
Tech review ok, waiting for @garrett for design review. Although we don't really have many knobs here, it's just standard PF Tooltip usage.
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 doesn't work right. Try going from bookmarks to edit. You can't.
You never want tooltips or popovers covering up related parts of the UI that follow (to the right especially or under, generally. But as there's no room above and no related items below, having the tooltips at the bottom would be the best solution here.)
In other words: Move the tooltips under the icons, not to the side. Thanks!
Screencast of what I mean: Kooha-2024-07-15-13-44-30.webm |
Explain the bookmark and edit path button with a tooltip. Related: cockpit-project#581
Much better, thanks! However, now we have another problem: When you have a tooltip and activate the button, you can't easily see and click on the Home entry at the top. Would there be a way to not show the tooltip when the dropdown of the widget is visible? At that point you already know what the button does and it only gets in the way. Here's a silly little screencast to show the problem: Kooha-2024-07-15-16-48-14.webm |
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.
(reviewed in the previous comment; GitHub is lousy about this, as not all reviews involve code reviews)
I pushed a working fix @ 9306b35; it's not ideal, but it adds a class to the element when the menu is open. I tried I also tried Therefore, I hide it visibly and pass through all mouse (so it's not intractable) and clicks pass through the invisible version of it. Anyway, feel free to augment it or even revert it, as long as we have some kind of fix that isn't too gross of a hack. (I had some other ideas, such as changing the appendTo and applying CSS off of the state, either from within the element or a sibling element... but this method felt less intrusive.) |
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'll approve now, but the last commit was mine, so I'm biased. I'd like someone else to verify this works for them and review again. Thanks!
(I think whatever approach we use to fix this will be some degree of "hacky". I think this is probably the least hackiest.)
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.
Cheers!
Explain the bookmark and edit path button with a tooltip.
Related: #581