From 6449f9eea8f4fdc7b43d423fb1d4e993871a6e92 Mon Sep 17 00:00:00 2001 From: Matthew Lipski Date: Fri, 31 May 2024 19:03:19 +0200 Subject: [PATCH] Made Mantine no longer render `data-mantine-color-scheme` attribute --- packages/mantine/src/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/mantine/src/index.tsx b/packages/mantine/src/index.tsx index 6a1c7e8c14..98c567cd6d 100644 --- a/packages/mantine/src/index.tsx +++ b/packages/mantine/src/index.tsx @@ -160,7 +160,11 @@ export const BlockNoteView = < {/* as proposed here: https://github.com/orgs/mantinedev/discussions/5685 */} + cssVariablesSelector=".bn-container" + // This gets the element to set `data-mantine-color-scheme` on. Since we + // don't need this attribute (we use our own theming API), we return + // undefined here. + getRootElement={() => undefined}>