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

fix: Remove data-mantine-color-scheme attribute #790

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

matthewlipski
Copy link
Collaborator

Closes #651
Closes #523

Copy link

vercel bot commented May 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview May 31, 2024 5:10pm
blocknote-website ✅ Ready (Inspect) Visit Preview May 31, 2024 5:10pm

Copy link
Collaborator

@YousefED YousefED left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We refer to data-mantine-color-scheme in our CSS. is this not an issue?

@matthewlipski
Copy link
Collaborator Author

We refer to data-mantine-color-scheme in our CSS. is this not an issue?

Ah yeah we do indeed - it's because mantineStyles.css contains Mantine global styles that are scoped to the editor, and so includes some things used by Mantine themes which we don't use since we have our own theme API. I think it's ok to keep it as is for maintainability, since we can just copy the Mantine global styles and change CSS rules for html/body/#root to .bn-container, kind of how we do with Ariakit.

@YousefED
Copy link
Collaborator

YousefED commented Jun 4, 2024

Ah yeah we do indeed - it's because mantineStyles.css contains Mantine global styles that are scoped to the editor, and so includes some things used by Mantine themes which we don't use since we have our own theme API. I think it's ok to keep it as is for maintainability, since we can just copy the Mantine global styles and change CSS rules for html/body/#root to .bn-container, kind of how we do with Ariakit.

Got it! Sounds good unless mantine-dark-hidden (or light-hidden) is used in the default components that we use, but I doubt that. Ok to merge if you can do some testing with both themes :)

@matthewlipski matthewlipski merged commit c7954d9 into main Jun 4, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

Mantine adding data-mantine-color-scheme to the html tag Importing react style.css is breaking our own CSS
2 participants