Skip to content

fix(markmap): follow article text color in screen modes - #48

Open
imbajin wants to merge 3 commits into
pgsty:mainfrom
hugegraph:fix/markmap-theme-text
Open

imbajin wants to merge 3 commits into
pgsty:mainfrom
hugegraph:fix/markmap-theme-text

Conversation

@imbajin

@imbajin imbajin commented Oct 14, 2026 •

Copy link
Copy Markdown

Fixes #47.

Problem

Markmap labels keep the bundled renderer's #333 text color in dark mode, making even short outlines difficult to read. On the native OINK v1.2.0 Slate canvas, label contrast is approximately 1.50:1.

Before After
Dark Markmap labels on the Slate canvas Labels follow the article text color

Change

  • Map --markmap-text-color to --bs-body-color on the article's Markmap wrapper and SVG. The SVG has its own vendor declaration, so setting the token only on an ancestor is insufficient.
  • Apply the mapping only on screen to preserve dark print ink.
  • Allow this specific third-party property in the namespace checker and add a source regression test.

The labels follow theme changes without rerendering. Vendor code and dependencies are unchanged.

Validation

Previously completed native browser checks cover light/dark presets, saved-mode reload, zoom/collapse, print, and consumer overrides. In the Slate dark comparison above, contrast increases to approximately 16.23:1. Full-site and cross-browser validation remain unverified.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T17:10:32.434602Z de697e6 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5c299ad77e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// mode/preset changes; keep the vendor's dark ink when printing on white.
@media screen {
.td-content .markmap {
--markmap-text-color: var(--bs-body-color);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Land the bilingual Markmap contract update

This introduces a public screen/print behavior change, but the commit explicitly says the docsite companion is only an unmerged patch, leaving the canonical EN/ZH Design contract out of sync. Land the corresponding English and Chinese changes under ../oink.pgsty.com/content/docs/design/ together with this implementation rather than leaving them as an external artifact.

AGENTS.md reference: AGENTS.md:L35-L37

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed: the canonical EN/ZH Design contract update has been added in pgsty/oink.pgsty.com#11, documenting the Markmap screen text, print fallback, and consumer overrides per AGENTS.md. I am leaving this thread open until that companion PR is merged.

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.

[Bug] Markmap labels remain dark in dark mode (native OINK v1.2.0)

1 participant