vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Feature Request] v-tooltip with arrow to emphasize direction

Open timothymarois opened this issue 4 years ago • 13 comments

Problem to solve

This feature would improve user experience (UX) and help with giving the right direction to the tip being show. Currently, there is no direction, and after thousands of user tests we've run across our platforms, we've noticed that user's believe the tooltips are the buttons instead of telling the user what the button actually does. This is because the tooltip themselves look as if they are independent from their original object.

Proposed solution

Like many tooltips across many online packages, they usually always have an arrow pointing towards its object. Most notably, the Bootstrap tooltip.

Example with tooltip and arrow

Screen Shot 2021-01-10 at 9 11 20 PM

Compared to what it currently does:

This is just one example of many, for the user's its hard for them to understand the tooltip is a helpful guide rather than the button they should click. Especially if you activate tooltips without hover, its even more confusing towards users, 78% of the sample of users tested clicked the tooltip message instead of the buttons themselves.

Screen Shot 2021-01-10 at 9 17 15 PM

timothymarois avatar Jan 11 '21 02:01 timothymarois

+1

kylawamg avatar Feb 25 '21 14:02 kylawamg

+1

alexdarh avatar Mar 15 '21 13:03 alexdarh

1+ At least let us attach some class to the actual tooltip

mchl18 avatar Mar 22 '21 13:03 mchl18

@mchl18

At least let us attach some class to the actual tooltip

use content-class prop

jacekkarczmarczyk avatar Mar 22 '21 13:03 jacekkarczmarczyk

+1

justinehell avatar Apr 20 '21 13:04 justinehell

Any update on this? Hit the same requirement

abepetrillo avatar Jun 15 '21 15:06 abepetrillo

Using content-class I've been able to add a class 'right-arrow' to position a pseudo-element accordingly. More classes could be used depending on which is the tooltip positioning and the desired arrow direction (top-left, top-center, top-right, etc)

        // SCSS
	$arrow-height: 16;
	$arrow-width: 16;

	.v-tooltip__content.menuable__content__active {
		&.right-arrow {
			overflow: inherit !important; // that's important to make the pseudo-element visible outside the main container
			z-index: 20;

			&::before {
				content: '';
				position: absolute;
				width: #{$arrow-width}px !important;
				height: #{$arrow-height}px !important;
				top: calc(50% - #{$arrow-height / 2}px);
				bottom: 0;
				right: -#{$arrow-width}px;
				z-index: 21;
				// custom appearance rules
			}
		}
	}

Hextar avatar Jun 18 '21 07:06 Hextar

This how I solved it. Please feel free to suggest edits and to improve the code image

image

https://github.com/SyzbaLinux/Vuetify-Tooltip

SyzbaLinux avatar Jul 27 '21 02:07 SyzbaLinux

+1

4KDA avatar Sep 17 '21 07:09 4KDA

1+ At least let us attach some class to the actual tooltip

We can only accurately position the arrow, for example, in the middle of the tooltip, but we will have a problem when the tooltip shows the edge of the page and therefore moves, relative to the call element

image

4KDA avatar Sep 17 '21 07:09 4KDA

+1

Thomas-1985 avatar Jan 20 '22 22:01 Thomas-1985

+1

presiyan-peev avatar Feb 01 '22 15:02 presiyan-peev

+1

krmroland avatar Apr 13 '22 23:04 krmroland

For anyone still looking, until this feature is realized - Floating Vue is what worked perfectly for me for this case.

omnichronous avatar Mar 07 '23 04:03 omnichronous

@omnichronous seem to conflicts with vuetify v-dialog compoent.

linpan avatar Jun 15 '23 02:06 linpan

Marking this as a duplicate of #4843

johnleider avatar Aug 09 '23 19:08 johnleider