-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Custom tree hover vs native hover #106095
Comments
I am fine leaving this for September btw, would also be interesting to get some user feedback on this. |
If our goal is to align with native hover characteristics then these updates make sense but then it also creates inconsistencies with our hovers in the editor (which appear above by default). One of the main issues with native hovers is that they take a really long time to appear, so long that users don't wait around for the tooltip to appear and can miss some context. In the studies we've done nearly everyone moves too quickly to see this appear. So making our custom hovers match the native ones adds to this issue. I am personally more in favor of having hovers appear quicker so that users can be aware of the description of items. I also like the idea of adding logic so this appears instantly if you are moving from one hover to another. |
@misolori note that the hover from @bpasero's original issue are very simple and just repeat information, so there isn't really a great need to make them discoverable. In fact it's preferable to not display most of the time. It should also show the full path as showing the text when the sidebar is too narrow is the main purpose of it, I mentioned this in another issue I think. |
Yes, my main concern is hovers that repeat the same information that is under the mouse. They should not appear any faster than native hovers. I am fine that rich-custom-hovers have different rules applied to them (including their position on the screen) given they really provide additional value. I think long term we should really just have one hover and not a custom and a native hover. It would likely be confusing for users to see 2 different styles for the same thing and I must admit that the "native" hovers on Linux and Windows really do NOT look any native for the OS. Only the macOS hover matches the native looks. |
For folks following the issue: custom hovers in the tree now show below the cursor and slightly offset to the right. Please try it out and provide further feedback! |
@alexr00 yeah it is better, but something I still see is that the hover seems to have a larger font compared to the text below: I think it should never be larger, maybe same size? This is running web btw with zoom 125%, maybe it is related. |
For now, we will go back to the native hover. The custom hover should be used at the resource label level instead of the tree level to avoid conflicts with resource labels. This is a larger change that will come later. Part of #106095
Per discussion about custom hover, we should opt in to custom hover at the resource label or icon label level (currently we opt in at the tree level, which is too high). Given that decision, we will go back to only showing custom hovers in the tree when the tooltip is markdown. Next milestone we will opt in to custom hovers at a deeper level than the tree. |
@SrBrahma markdown is like HTML in that is merged whitespace into a single whitespace characters. You could try using experiment with using a non breaking space ( |
Does it accept HTML tables? |
The table format will not work (at least not until #100741 is finalized. Once that's finalized you should be able to use markdown tables). I just tested |
From @bpasero in #106010
Our custom hover is different from native hovers in the following ways:
The reason why I am sensitive to this is that we should try to match the native look and feel as much as possible. To give another example: we are using hand cursor on clickable elements in the UI and we got users complaining that this is a pattern only seen in web UIs but not native UIs. I fear we might end up annoying more users that want an experience that is closer to what the OS provides.
cc @misolori for UX and @Tyriar for workbench hover in general
The text was updated successfully, but these errors were encountered: