Skip to content

Importing react style.css is breaking our own CSS #523

@charlesBochet

Description

@charlesBochet

Describe the bug
We are using your awesome BlockNote on Twenty and wanted to migrate to the new version: https://github.com/twentyhq/twenty/pull/3517/files

From the release notes:

Breaking Changes
Change import "@blocknote/core/style.css"; to import "@blocknote/react/style.css"; if you're using @blocknote/react

This update changes how themes and styles are applied to the editor. This means if you were previously overriding CSS using the componentStyles field in a Theme object, you should convert those styles to CSS rules. See the new theming and styling documentation [here](https://www.blocknotejs.org/docs/theming).

However, react/style.css does change the style of non block-note related class, for example:
body,html{height:100%}...

This is an issue as we import it in our project using @blocknote/react/style.css, it completely breaks our page layout.

Before:
image

After:
image

(see that the Sort button for example is broken)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingprio:highHigh priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions