Skip to content

Show tooltip on touch devices #1136

@bitworking

Description

@bitworking

🙋 Feature Request

Tooltips should also be shown on touch devices.

🤔 Expected Behavior

When I long-press on the trigger button the tooltip should be shown.

😯 Current Behavior

Tooltips do not appear on touch devices. The trigger button is shown but nothing happens if you press it.

💁 Possible Solution

The most obvious solution would be a long-press on the trigger button. The delay should be the same as for hovering.

🔦 Context

A tooltip shows further information which might not be interesting for every user (form fields for example). So you do not always need to display it. But if it does not work on touch devices, you need another solution for example hide the button and show the text under the form field. But since the space on mobile devices is already limited, this is suboptimal and also would involve a lot of work.

💻 Examples

The design guide of Material Design for example also recommends to show the tooltip on hover, focus or long-press: https://material.io/components/tooltips

🧢 Your Company/Team

I'm building a component library (nx-kit) for my company nexum AG: https://github.com/nexumAG
The repo is still private but will be openend if we are out of the early phase. The first components are on npm for testing, though: https://www.npmjs.com/search?q=%40nx-kit

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions