Component override in theme object does not work for Tooltip
#6385
Labels
No reproduction
Issues without reproduction are closed to save time on maintanance
Tooltip
#6385
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.10.2
What package has an issue?
@mantine/core
What framework do you use?
Vite
In which browsers you can reproduce the issue?
Not applicable – issue is not related to the browser
Describe the bug
I've noticed even in earlier 7.x.x versions that the Tooltip component's overrides in my theme object does not work. Whether styles, default props or even classnames. Nothing gets applied, but everything works with the other components I use in the override. I'm not sure if there's something extra I'm missing but here's an illustration and I've attached a codesandbox:
I add an explicit classname in my override to all the components in it, but as you can see, it works for the others except the tooltip.
I'm able to use my global styles to fix this however, but I'll appreciate if the overrides work as expected. Thanks!
Edit: After attempting to recreate the bug again in codesandbox, it appears to no longer happen. The screenshot above is proof however that it does happen sometimes. Same with my personal projects.
If possible, include a link to a codesandbox with a minimal reproduction
https://codesandbox.io/p/devbox/mw2fsj?migrateFrom=l4vqsn
Possible fix
No response
Self-service
The text was updated successfully, but these errors were encountered: