codi.link icon indicating copy to clipboard operation
codi.link copied to clipboard

Add timeout to tooltip after few seconds to remove it

Open diego-tech-dev opened this issue 4 years ago • 6 comments

When you hover the sidebar buttons, the tooltip stays there as long as you have the mouse over, but I think it would be better if the tooltip disappear after 5 seconds

diego-tech-dev avatar Oct 03 '21 20:10 diego-tech-dev

I have opened a PR to fix this issue: https://github.com/midudev/codi.link/pull/104 I hope you like it. This is actually my first PR ever in an open source project :)

diego-tech-dev avatar Oct 03 '21 22:10 diego-tech-dev

When you hover the sidebar buttons, the tooltip stays there as long as you have the mouse over, but I think it would be better if the tooltip disappear after 5 seconds

Hi @diegogb-08 , why do you think that is wrong? I think it is the normal behavior of tooltips. In fact, in visual studio, it does not disappear until the cursor leaves the element. vscode

I have opened a PR to fix this issue: #104 I hope you like it. This is actually my first PR ever in an open source project :)

It's also my first time collaborating on open source projects. Congrats!!

dartilesm avatar Oct 03 '21 22:10 dartilesm

Actually you are right, even though my vscode does not act the same way you show on the video. However, I still think that it is a bit annoying to have the tooltip there forever and I think the fact that it disappears or appears after few seconds gives a better UX because it is not covering forever part of text from the menu. It might be me with my OCD :).

diego-tech-dev avatar Oct 04 '21 13:10 diego-tech-dev

It's not a critical requested feature, but it helps to the experience anyway. Let's see if it got accepted!

stylessh avatar Oct 05 '21 13:10 stylessh

In my opinion we shouldn't remove tooltips, as @dartilesm pointed, vscode doesn't remove them till element isn't hovered. They copy title attribute behaviour and in terms of user experience is better to leave it like that. (Just my point of view)

QuevedoIB avatar Oct 06 '21 14:10 QuevedoIB

I would recommend to hide the tooltip actually when the user click in the section and enters. Some changes to the PR would be needed, as now the tooltip is being hidden even when you're only hovering the button.

This way, we mimic the VSCode functionality as well. :)

midudev avatar Oct 07 '21 20:10 midudev