Skip to content

[tooltip] Apply focusDelay, hoverDelay and hideDelay to grid and menu-bar tooltips #4640

Closed

Description

@web-padawan

Describe your motivation

Currently, API documentation for global methods mentions that it affects all tooltip instances:

/**
* Sets the default focus delay to be used by all tooltip instances,
* except for those that have focus delay configured using property.
*
* @param {number} delay
*/
static setDefaultFocusDelay(focusDelay) {

This is different from API docs for corresponding properties that mention manual mode:

/**
* The delay in milliseconds before the tooltip
* is opened on focus, when not in manual mode.
* @attr {number} focus-delay
*/
focusDelay: {

Also note, we set manual internally in vaadin-grid and vaadin-menu-bar (which is an implementation detail).
So users trying to set tooltips for those would most likely find the current behavior quite confusing UX-wise.

Describe the solution you'd like

Apply focusDelay, hoverDelay and hideDelay also when using manual mode.

Additional context

Need to test all the edge cases (e.g. setting opened to false during the opening delay, and vice versa)

Activity

  1. self-assigned this
    on Sep 27, 2022
  2. changed the title [-][tooltip] Apply focusDelay, hoverDelay and hideDelay to manual tooltips[/-] [+][tooltip] Apply focusDelay, hoverDelay and hideDelay to grid and menu-bar tooltips[/+] on Oct 4, 2022
  3. web-padawan commented on Oct 5, 2022

    @web-padawan
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions