Skip to content

fix(website): theme browser text-fragment highlights - #1588

Merged
trueadm merged 1 commit into
octanejs:mainfrom
openai-oss-forks:codex/fix-docs-text-highlight
Oct 2, 2026
Merged

trueadm merged 1 commit into
octanejs:mainfrom
openai-oss-forks:codex/fix-docs-text-highlight

Conversation

@domgan-oai

@domgan-oai domgan-oai commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Browser links to highlighted text on the docs, including “Own shared state with a scope” on /docs/signals, currently use the browser's purple background and black text. Style ::target-text with the existing Octane accent and foreground tokens, retaining the useful highlight with 5.21:1 contrast in both themes.

The rule is separate from ::selection, so ordinary selection and heading anchors keep their existing behavior. This is a five-line website CSS change; no package changeset is needed.

Validation

  • pnpm format:check — full repository check not run; scoped check below passed.
  • pnpm typecheck — not run for this CSS-only change.
  • pnpm test — full suite not run locally.
  • pnpm format:files:check website/src/routes/__root.tsrx
  • git diff --check
  • pnpm sync — completed with the downloaded pinned tooling; no generated changes.
  • Browser verification: reproduced the native purple text-fragment highlight on the live site; compared before/after CSS on a local copy of its server-rendered HTML in dark and light themes; ordinary #shared-state navigation remains unhighlighted. The local fixture disables hydration and disambiguates the duplicate sidebar label, so this is focused CSS evidence rather than a full application build.
  • Independent read-only review found no actionable issues.

Risk / follow-ups

A full local website build is unverified: dependency installation is blocked by the configured Socket registry returning HTTP 403 for the existing @tanstack/[email protected] tarball. No dependency versions or registry policies were changed. Formatting and generation use the already-downloaded, lockfile-pinned tooling.

Provenance

  • An agent produced this diff (agent-authored)

Origin: Codex task · Host: com-79386.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Low Risk
CSS-only global pseudo-element styling with no auth, data, or runtime logic changes.

Overview
Docs links that jump to highlighted text fragments (browser :~:text= URLs) no longer show the default purple/black highlight. Global base styles in __root.tsrx now set ::target-text to use --accent and --on-accent, so those highlights match Octane branding in light and dark themes.

::selection is unchanged, so normal text selection and plain hash navigation behave as before.

Reviewed by Cursor Bugbot for commit fc38ca8. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Oct 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
octane-website-mcp Skipped Skipped Oct 2, 2026 6:09pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp October 2, 2026 18:09 Inactive
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix labels Oct 2, 2026
@domgan-oai
domgan-oai marked this pull request as ready for review October 2, 2026 18:10
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Benchmark report

🟢 No size increases and no timing regressions outside noise.

Compares 18fbcb06b with 7f9f748e3 on the same runner. Timing verdicts require a change beyond the combined margin of error (at least 5%) and one 0.1ms timer tick, with the fastest sample also moving beyond that margin. Workflow run

js-framework: 1k/10k row operations (ms, lower is better)

target operation base head Δ noise
octane-jsx replace 9.92 8.28 −16.5% ±14% 🟢 faster
All 20 timed operations (19 within noise)
target operation base head Δ noise
octane-tsrx run 4.73 4.14 −12.5% ±26% ⚪ within noise
octane-tsrx replace 9.35 9.47 +1.3% ±18% ⚪ within noise
octane-tsrx add 4.28 4.05 −5.4% ±26% ⚪ within noise
octane-tsrx update 0.62 0.48 −22.6% ±37% ⚪ within noise
octane-tsrx select 0.24 0.19 −20.8% ±53% ⚪ within noise
octane-tsrx swap 0.51 0.52 +2.0% ±36% ⚪ within noise
octane-tsrx remove 0.51 0.45 −11.8% ±48% ⚪ within noise
octane-tsrx runlots 38.91 37.31 −4.1% ±50% ⚪ within noise
octane-tsrx select_lots 0.32 0.28 −12.5% ±47% ⚪ within noise
octane-tsrx clear 50.38 49.62 −1.5% ±7% ⚪ within noise
octane-jsx run 4.28 4.97 +16.1% ±26% ⚪ within noise
octane-jsx replace 9.92 8.28 −16.5% ±14% 🟢 faster
octane-jsx add 4.49 3.58 −20.3% ±23% ⚪ within noise
octane-jsx update 0.85 0.73 −14.1% ±56% ⚪ within noise
octane-jsx select 0.47 0.47 +0.0% ±32% ⚪ within noise
octane-jsx swap 0.95 0.92 −3.2% ±49% ⚪ within noise
octane-jsx remove 0.84 0.75 −10.7% ±45% ⚪ within noise
octane-jsx runlots 34.79 32.41 −6.8% ±14% ⚪ within noise
octane-jsx select_lots 3.12 2.78 −10.9% ±34% ⚪ within noise
octane-jsx clear 56.59 54.66 −3.4% ±26% ⚪ within noise

Application bundle size (bytes)

No changes across 45 measured values.

Public-import reachability bundles (bytes)

No changes across 105 measured values.

@trueadm
trueadm merged commit 0b0e10f into octanejs:main Oct 2, 2026
54 checks passed

This branch was previously deployed

1 inactive deployment
Preview – octane-website-mcp — fc38ca8e Deployed Oct 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants