-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Feature Request] Add a global variable to set the default delay for tooltips #9571
Comments
does |
open-delay is something that you have to set for every time you use the tooltip component. The delay is not something that I think is set by css. If we had a global variable then it would help the developer enforce a consistent behavior across tooltips. Without one, the alternative would be to create some sort of global mixin and apply the global mixin variable to the tooltip component each time its used. |
I believe the current option for now would be to create a custom component that extends v-tooltip and has predefined defaults. SASS approach i was more thinking of just setting an animation delay but you can ignore that. Right now we do not have any abilities to set global component configurations, however this is already on our official roadmap for v2.3 - Orion |
Let's keep the issue with general global config instead of specific prop |
It is working 100% First - create custom component for tooltip (CustomTooltip.vue)
Second - import the custom tooltip component in main.js
Third - use it any component
|
Problem to solve
Tooltips by default have a 0ms delay. Most UIs have a delay on their tooltip so that they appear after a short time to give the user a tip on the UI element they are hovering over. This makes it so that tooltips don't create visual noise for the user.
Proposed solution
If a variable is added to the vuetify plugin constructor which sets the default delay for tooltips, that would be very helpful.
The text was updated successfully, but these errors were encountered: