Skip to content

fix: scope cursor caret CSS to be more specific #1492

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 1 commit into from
Mar 5, 2025
Merged

Conversation

nperez0111
Copy link
Contributor

@nperez0111 nperez0111 commented Mar 5, 2025

To help in our liveblocks integration, we are scoping the styles of our cursors to be more specific (based on the .collaboration-cursor__base classname) so that we do not conflict with the styles they have setup to style the default tiptap cursors

So, for their CSS to work properly, they will need to provide their own cursor rendering logic to match the default Tiptap one

Copy link

vercel bot commented Mar 5, 2025

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

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Mar 5, 2025 10:04am
blocknote-website ✅ Ready (Inspect) Visit Preview Mar 5, 2025 10:04am

@nperez0111 nperez0111 requested a review from YousefED March 5, 2025 09:53
@nperez0111 nperez0111 merged commit e527783 into main Mar 5, 2025
11 checks passed
@nperez0111 nperez0111 deleted the scope-cursor-css branch March 5, 2025 11:29
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.

don't we want to prefix the classname?

this way there won't be any collision when consumers already have a collaboration-cursor__base rule

@nperez0111
Copy link
Contributor Author

To only prefix the classname? Or prefixing in addition to this?

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.

2 participants