-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
inconsistent tool tips #8829
Comments
Accessibility concerns:
|
I think those are good accessibility concerns regarding the IPv6 hostname, and thanks for bringing those up! |
Browser tooltips
PatternFly & jQuery tooltips
PatternFly Info Tips
Summary: Use PatternFly / jQuery tooltips when you need tooltips. Info tips should only be used when you expect interaction. |
(The above is based on a conversation on IRC earlier today. Please correct if wrong.) |
Thanks @garrett for the summary! So I'll go with the transparent-gray notifications by default on the systems page and the menu navigation for now, and will try |
Yikes. I think titles are only needed in the navigation when the string is truncated anyway. It's visible and screen readers should pick up the items without resorting to title. When I redid the nav, I tried to make sure even the longest of our labels fit in without truncation. Perhaps we can just remove the |
Indeed! They are just redundant. The simplest ideas are the best 👍 |
These are exactly as (non-)interactive as the Hardware Info and Machine ID tooltips, so replace them with a standard bootstrap tooltip. This makes all tooltips on the system page work in the same way. Drop the static blue (i) button for the performance profile, but keep the dynamic info icon for the time, as it changes between "off", "in progress", and "enabled" NTP syncing. Implementation note: While bootstrap tooltips *can* be made to use the standard `title` attribute, this will always additionally trigger the standard browser tooltips, which we don't want. So change bootstrap tooltip's `data-original-title` field instead. In tuned's link.html, wrap the link into an extra `<span>` and attach the tooltip to that, so that it works even if the link is disabled (if tuned is not installed). Also fix the tuned status to react to tuned.service starting and stopping, instead of only updating on a button click (which is now not even available any more with the removal of the (i) button). Fixes cockpit-project#8829 Closes cockpit-project#8835
These are exactly as (non-)interactive as the Hardware Info and Machine ID tooltips, so replace them with a standard bootstrap tooltip. This makes all tooltips on the system page work in the same way. Drop the static blue (i) button for the performance profile, but keep the dynamic info icon for the time, as it changes between "off", "in progress", and "enabled" NTP syncing. Implementation note: While bootstrap tooltips *can* be made to use the standard `title` attribute, this will always additionally trigger the standard browser tooltips, which we don't want. So change bootstrap tooltip's `data-original-title` field instead. In tuned's link.html, wrap the link into an extra `<span>` and attach the tooltip to that, so that it works even if the link is disabled (if tuned is not installed). Also fix the tuned status to react to tuned.service starting and stopping, instead of only updating on a button click (which is now not even available any more with the removal of the (i) button). Fixes #8829 Closes #8835
We currently have at least three tooltip styles. On our React pages, like kdump or React Patterns:
On the system page there are "broken" ones on Hardware and Machine ID, as well as the navigation menu items on the left:
This is because this just sets the
title=
attribute instead of using the jQuery .tooltip() method. When doing that, they look like the React ones:Finally, on the system page on the blue (i)s we have this style, which also needs to be clicked, not just hovered:
We should pick one style and apply it consistently.
The React one has a nice contrast and looks a little more "distinguished". The latter (white) one is nicer for showing icons, as the grey one has poor contrast in this case:
(The text color is wrong, I haven't looked into that yet - but the icon is the point here)
Hint from @garrett: try
text-shadow
The text was updated successfully, but these errors were encountered: