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

Mantine css variable doesn't work in shadow dom #6405

Closed
2 tasks done
yyytae0 opened this issue Jun 18, 2024 · 0 comments
Closed
2 tasks done

Mantine css variable doesn't work in shadow dom #6405

yyytae0 opened this issue Jun 18, 2024 · 0 comments

Comments

@yyytae0
Copy link
Contributor

yyytae0 commented Jun 18, 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.1

What package has an issue?

@mantine/core

What framework do you use?

Vite

In which browsers you can reproduce the issue?

None

Describe the bug

:host() mdn
css variables doesn't work in shadow dom even though set cssVariablesSelector to :host on MantineProvider
cause :host has another convention unlike :root

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

add ternary operator when cssVariablesSelector is :host
i add pr to fix it

PR Link

Self-service

  • I would be willing to implement a fix for this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants