Skip to content
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

Component override in theme object does not work for Tooltip #6385

Closed
1 of 2 tasks
CHR-onicles opened this issue Jun 13, 2024 · 2 comments
Closed
1 of 2 tasks

Component override in theme object does not work for Tooltip #6385

CHR-onicles opened this issue Jun 13, 2024 · 2 comments
Labels
No reproduction Issues without reproduction are closed to save time on maintanance

Comments

@CHR-onicles
Copy link

CHR-onicles commented Jun 13, 2024

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

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:

image

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

  • I would be willing to implement a fix for this issue
@rtivital
Copy link
Member

Please provide a sandbox with a minimal reproduction. The sandbox that you've sent is empty.

@rtivital rtivital added the No reproduction Issues without reproduction are closed to save time on maintanance label Jun 28, 2024
@CHR-onicles
Copy link
Author

CHR-onicles commented Jul 1, 2024

The sandbox keeps reseting, but as I said earlier, I'm unable to reproduce the bug predictably. It seems to happen randomly in the sandbox, so for now I'll be closing this issue.

@CHR-onicles CHR-onicles closed this as not planned Won't fix, can't repro, duplicate, stale Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No reproduction Issues without reproduction are closed to save time on maintanance
Projects
None yet
Development

No branches or pull requests

2 participants