Skip to content

feat(Tooltip): Disable tooltip if media query is any-hover: none #32503

@wein2011

Description

@wein2011

Feature Description

On iPads and similar devices the tooltip will appear and remain when clicking a button with associated tooltip.

See #25287

This is caused by the desktop vs. mobile mode for iPads.

Based on the adoption of the new W3 standards, it might now be possible to disable the tooltip if there is no hover-capable device available instead of relying on the mode.

if (window.matchMedia('(any-hover: none)').matches)

This would eliminate the tooltip issue on iPads.

However, you might still want to keep the tooltip if a user performs a long click.

Can I use @media: any-hover shows adoption by all browsers (besides IE).

Use Case

Usability improvement for iPads:

User will not be required to reload the site with mobile mode for it to function correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue represents a new feature or feature request rather than a bug or bug fixneeds triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions