Highlight block when drag handle menu is open #2494
blwsk
started this conversation in
Ideas & Enhancements
Replies: 1 comment
-
|
I need to implement a similar feature, my approach is in style sheet, I use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
When manipulating a block via the side menu (i.e. clicking the drag handle), actions like Delete and Colors alter not only the top-level block but all it's children. Deleting the top-level block will delete it's children.
In Notion, when their equivalent side menu is open, the relevant block and its children are highlighted. This is useful as it conveys to the user that their actions in the side menu take effect on not only the top-level block but all its nested children.
Describe the solution you'd like
Either amend the out-of-the-box behavior of BlockNote to include some lightweight styling of the block being interacted with when the side menu is open or add a well-defined class or other selector so that users may write their own CSS against it.
(Or, provide any ideas on how to accomplish this UX in user land.)
Describe alternatives you've considered
I've considered going down the route of custom tiptap or prosemirror extensions, but that seems heavy-handed for a helpful, yet subtle feature that exists in Notion.
I'm not opposed to going down this path, ultimately, but I want to verify if (1) this feature request aligns with BlockNote's roadmap or (2) it's possible to accomplish this easily in user land, today.
Additional context
In Notion:

In BlockNote (from example here):

Bonus
[x] I'm a sponsor and would appreciate if you could look into this sooner than later 💖
Beta Was this translation helpful? Give feedback.
All reactions