Skip to content

chore: Mantine update #479

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

Merged
merged 16 commits into from
Jan 8, 2024
Merged

chore: Mantine update #479

merged 16 commits into from
Jan 8, 2024

Conversation

matthewlipski
Copy link
Collaborator

@matthewlipski matthewlipski commented Dec 15, 2023

This PR updates Mantine to the newest version. The way themes are defined and applied has changed drastically since v7, and now uses CSS variables to store theming data instead of emotion. Currently, the API used to provide a theme is the same, but the theme is now converted into CSS variables instead of being passed as a MantineThemeOverride. Some styling may be slightly different after moving to CSS, but these changes are small and should be easily fixable.

NOTE: This PR breaks styling for tooltips, as they are rendered outside the .bn-container element due to the current implementation, which uses Tippy. #501 fixes the issue and converts them to Mantine Tooltip components, causing the tooltips to be rendered as a sibling of the target element. So recommend merging that PR before this one.

closes #383

Copy link

vercel bot commented Dec 15, 2023

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

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Jan 8, 2024 2:35pm
blocknote-website ✅ Ready (Inspect) Visit Preview Jan 8, 2024 2:35pm

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.

joint review

@@ -27,7 +27,7 @@
"dependencies": {
"@blocknote/core": "^0.10.1",
"@blocknote/react": "^0.10.1",
"@mantine/core": "^5.6.1",
"@mantine/core": "^7.3.1",
Copy link
Collaborator

Choose a reason for hiding this comment

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

todo: @YousefED check file

className={classes.root}
sx={(theme) => {
className={"bn-color-icon"}
data-background-color={backgroundColor}
Copy link
Collaborator

Choose a reason for hiding this comment

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

tbd; classname or data attribute?

* Replaced Tippy with Floating UI

* Fixed minor bugs and styling inconsistencies

* try fix lock

* Implemented PR feedback

* update package lock

* fix package lock

* fix tests

---------

Co-authored-by: yousefed <[email protected]>
@matthewlipski matthewlipski merged commit 2f0bada into main Jan 8, 2024
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.

Update Mantine & TipTap
2 participants