-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
joint review
package-lock.json
Outdated
@@ -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", |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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?
packages/react/src/components/TableHandles/TableHandleMenu/TableHandleMenu.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/TableHandles/DefaultTableHandle.tsx
Outdated
Show resolved
Hide resolved
packages/react/src/components/SideMenu/DragHandleMenu/DragHandleMenu.tsx
Outdated
Show resolved
Hide resolved
…specificity issues caused by prev commit)
* 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]>
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