-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[docs] Tooltip documentation missing componentProps added in #28679 #36184
Comments
I can see
What is incorrect in the description? Please provide more information. |
I must have mistyped that when I was searching for it in the API-page. Sorry.
sx-prop documentation says you can modify a component with sx-prop. In case of Tooltip (and probably some others) the sx-prop is actually forwarded to child component (at least it seamed so, in any case it can't be used to modify Tooltip) which hasn't been mentioned anywhere. There should be a mention of this behavior on the Tooltip-documentation on the sx-prop. |
Please provide a CodeSandbox. The issue template is a good starting point. It would us both to be on the same page. |
Sorry, I figured that sandbox wouldn't be needed, since the problem was kind of already fixed at #28692, just the documentation was faulty. I actually noticed an other problem regarding hovering and open-prop. They seem to work/not work a bit strangely. With first 2 Tooltips, the hovering doesn't open the tooltip. With 3rd (using slotProps) open-prop doesn't show tooltip, but hovering works and in forth giving open-prop through slotProps keeps tooltip open. |
Duplicates
Related page
https://mui.com/material-ui/api/tooltip/
Kind of issue
Missing information
Issue description
Missing and incorrect documentation:
I was looking for a way to use sx-prop to edit tooltip popper css and it appears that componentProps-prop that was added in PR 28692 is still missing the documentation.
It took me several hours to find the problem and correct issue with the solution to it.
Also the description of the sx-prop gives incorrect information about how it works with Tooltip-component.
Context 🔦
No response
The text was updated successfully, but these errors were encountered: