Skip to content

Docs: one dot for nav tags, keep code-sample indent, fix logos and schemes demos - #601

Merged
lorant-one merged 1 commit into
previewfrom
fix/docs-nav-new-dot
Nov 24, 2026
Merged

lorant-one merged 1 commit into
previewfrom
fix/docs-nav-new-dot

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Lorant reported four issues on the docs.

Nav "New" tags looked different from each other

  • Some tags had no dot, some a grey dot, some an orange one.
  • Cause: the pages' navTagVariant used tones the dot can't paint (cyan drew nothing), and an age fade turned the dot grey or orange.
  • Fix: every New/Update tag now gets the same brand dot. The tag still expires after 60 days.

Code samples lost a level of indent, on every page

  • MDX strips up to two spaces from each line inside a JSX block, and that includes lines in template literals. So layout="row" rendered flush left.
  • I confirmed this with a bare @mdx-js/mdx compile.
  • Fix: CustomMDX rewrites the leading spaces of a code literal as \x20 escapes before compiling. The evaluated string is unchanged.

LogosSection demo showed dark logos in dark mode

  • The demo had src and srcDark swapped: type-dark.svg is the white one.

Schemes grid header had its own darker band

  • The header row used background="page" with position="sticky".
  • The grid scrolls in its own box, so the header never actually stuck. All the band did was sit darker than the surface around it.
  • Fix: removed both.

Checked on docs dev in dark mode: the nav, /components/pageSections, /components/workspaceSwitcher (indent restored) and /basics/color. Typecheck is clean, and lint shows no new findings.


Generated by Claude Code

…hemes demos

- Sidebar: every New/Update tag gets the same brand dot. Front matter
  tones (cyan drew nothing) and the age fade made three New items look
  like three different things; the tag still expires after 60 days.
- MDX strips up to two spaces off every line inside a JSX block,
  template literals included, so every code sample lost a level of
  indent. CustomMDX spells a code literal's leading spaces as \x20.
- LogosSection demo had its light and dark logos swapped.
- Schemes grid: the header row's page-coloured band is gone; the grid
  scrolls in its own box so the sticky header never stuck.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
@lorant-one
lorant-one merged commit 7f6bbec into preview Nov 24, 2026
10 of 13 checks passed
@lorant-one lorant-one added the approved label Nov 24, 2026 — with Claude
@lorant-one lorant-one mentioned this pull request Nov 24, 2026
7 tasks done
@lorant-one
lorant-one deleted the fix/docs-nav-new-dot branch November 29, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants