šŸ›(Bug) Block menu shows an orphan separator on blocks without colors (math, diagram)

Open Beginner friendly
#3,021 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 3 days

@arxh80 is already working on this.

Since Nov 17, 2026.

  • #3027 by @arxh80 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
react, typescript
Domain
frontend

Research direction

Start with DocsDragHandleMenu.tsx and SideMenuSeparator.tsx, then compare the separator visibility check with BlockColorsItem for blocks without color props. Update the separator behavior and remove the hardcoded type list; confirm the empty separator no longer appears for math and diagram blocks, and that separators remain correct for blocks with colors.

Written by the indexing model from the issue text.

Description

frontend good first issue

On a block without colors (math, diagram), the block menu opens with an empty separator at the top: BlockNote already hides "Colors" for blocks without textColor/backgroundColor props, but the separator after it is only hidden for a hardcoded list of types.

https://github.com/suitenumerique/docs/blob/f2a8929004f4d8245efaa05b722f56fe1c75b20f/src/frontend/apps/impress/src/features/docs/doc-editor/components/DocsSideMenu/DocsDragHandleMenu.tsx#L35-L41

image

Any new block without colors brings the bug back, as mathBlock and diagram did.

Suggested fix: in SideMenuSeparator, hide the separator when the block has neither textColor nor backgroundColor in its props, with the same check as BlockColorsItem, and drop the hardcoded typeHide list.

Dominant language
TypeScript
Stars
17k
Forks
705
Avg merge
4d 13h
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from suitenumerique/docs

All issues in suitenumerique/docs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.