-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
[tooltip] Bring mobile support back? #559
Comments
Tooltips intentionally don't work on touch devices in the new Base UI. Hoverable popovers (for "infotips"/contextual help) are a valid pattern though, and should be used instead when the trigger's only purpose is to show the "tooltip" (infotip for more correct terminology). If the trigger performs an action, then it's impossible for a tooltip to be attached in a valid way for touch input. They're inherently secondary in nature. |
Ok, turning this into a waiting for upvotes issue then. |
I faced a pain today that seems to be a strong motive for the need to bring back tooltip support for touch devices. I was on my phone, and as usual, I have the desktop mode enabled (nowadays, I almost never use the mobile web version of websites on my phone, most of the time it has: /2 features, a different UI organization making me so lost on them, has everything too big).
it uses the MUI Base Tooltip, it simply worked. |
Those are hoverable popovers ( |
@atomiks As I understand the problem, it's about the tooltip component's default behavior (independently from the popover). When end-users go to a page that has a tooltip e.g. https://base-ui.com/react/components/tooltip with desktop mode enabled, they can't show the tooltip information. |
It seems like that's more of a documentation issue because the modality of user input (touch vs hoverable pointer/mouse) is what determines if the tooltip shows or not, regardless of desktop view etc. When the docs first launched, I did think that even for normal touch users we might want to add a callout about it not being able to appear if you're using touch input, and to consider alternatives instead |
Steps to reproduce
Link to live example: (required)
Steps:
Current behavior
No response
Expected behavior
Worked like in https://mui.com/material-ui/react-tooltip/
Also missing those tests: https://github.com/mui/material-ui/blob/eea5079a00bedb68e27f22b7f94d9a71cc97ee1e/packages/mui-material/src/Tooltip/Tooltip.test.js#L404
Context
Your environment
npx @mui/envinfo
Search keywords: -
The text was updated successfully, but these errors were encountered: