Skip to content

Commit c7954d9

Browse files
Made Mantine no longer render data-mantine-color-scheme attribute (#790)
1 parent c9a53bb commit c7954d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/mantine/src/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,11 @@ export const BlockNoteView = <
160160
{/* as proposed here: https://github.com/orgs/mantinedev/discussions/5685 */}
161161
<MantineProvider
162162
theme={mantineTheme}
163-
cssVariablesSelector=".bn-container">
163+
cssVariablesSelector=".bn-container"
164+
// This gets the element to set `data-mantine-color-scheme` on. Since we
165+
// don't need this attribute (we use our own theming API), we return
166+
// undefined here.
167+
getRootElement={() => undefined}>
164168
<BlockNoteViewRaw
165169
theme={typeof theme === "object" ? undefined : theme}
166170
{...rest}

0 commit comments

Comments
 (0)