Skip to content

Editor: Move the markdown editor styles into a common component - #89

Merged
whereareiam merged 1 commit into
devfrom
refactor/editor-component
Oct 4, 2026
Merged

whereareiam merged 1 commit into
devfrom
refactor/editor-component

Conversation

@whereareiam

Copy link
Copy Markdown
Owner

Stacked on #88 (base is its branch).

What

styles/components/issues/editor.ts held GitHub's comment editor for five hosts (comment form, new issue page, review panel, diff comment form, release form). It was part of the theme files, under the issue styles.

It moves to components/common/editor/editor.css, linked from component_assets.tmpl like the other common components. The rules are unchanged; the theme variable references become the CSS variables they compile to (--border-radius, --color-body, --color-box-header, --color-light-border, --color-text-light-1, --color-text, --github-fgColor-accent). The host list is one flat :is().

Before After
Largest theme file 208,020 bytes 205,391 bytes

Verification

The 21-page before/after comparison: every page with a visible editor (issue, new issue, pull request, new release) is identical. The review panel and the diff comment form, which open on demand, were measured after the move: 640px panel, editor inset 17px, 38px toolbar on the header background, 1px editor border, 32px borderless attachment line. bun vitest (403 passed), bun check and Prettier pass.

🤖 Generated with Claude Code

The editor rules lived in the issue styles of the theme files although
they also serve the release form, and counted against the theme size
limit. They move, unchanged, to components/common/editor/editor.css with
the other common components. The largest theme file drops from 208.0 KB
to 205.4 KB.

No visual change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@whereareiam whereareiam added the skip-changelog Internal change excluded from release notes label Oct 4, 2026
Base automatically changed from refactor/merge-section-row to dev October 4, 2026 15:43
@whereareiam
whereareiam merged commit 672c968 into dev Oct 4, 2026
7 checks passed
@whereareiam
whereareiam deleted the refactor/editor-component branch October 4, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Internal change excluded from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant