Render gap markers inside mark components so they inherit the mark’s styles
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start in the NodeArrayProperty component, where NodeGapMarkers is rendered once after all fragments, and in MarkComponent, which should receive the gap markers for gaps between its own nodes. Reproduce with a section mark that has a colorset, then check that markers between its blocks take the mark's --editing-stroke color. Done when those markers match the colors of nested-array markers and boundary gaps still render in the array's context.
Written by the indexing model from the issue text.
Description
NodeArrayProperty renders NodeGapMarkers once, after all fragments, so markers for gaps inside a mark (such as a section) sit outside the mark component's element. They take their color (--editing-stroke, derived from currentColor) from the array's container instead of the mark.
In Editable, a section with a dark or colored color set wraps its blocks in <section class="ew-colorset-3">. Gap markers between blocks of that section render after the section and stay dark on its purple background, while markers in nested arrays (inside the blocks) pick up the section's colors correctly.
Proposed fix: render the markers for gaps between a mark's nodes inside the MarkComponent, next to those nodes. Gaps at the boundaries of a mark can stay outside, in the array's own context.
Follow-up in Editable: none needed; markers inside sections will then follow the section's tokens automatically.
- Dominant language
- TypeScript
- Stars
- 691
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from michael/svedit
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Similar issues
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-js#1293 ·
Maintainers usually reply within 1 day
-
area: middleware enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
agent/quality testing
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Maintainers usually reply within 1 day
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
juspay/agent-distro#203 ·
Maintainers usually reply within 1 day