Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Theme the TOC scrollbar —
MarkdownTableOfContentsPanel.tsx:182adds the existingscrollbar-sleekclass to the non-virtualizedmarkdown-toc-listdiv, the style-guide default for sidebar/list scrollbars (STYLEGUIDE.mdL226,main.cssL545). The container already setsoverflow-y: auto(markdown-preview.cssL155), so the theme applies. - Regression assertion — the panel test pins the exact rendered class string (
MarkdownTableOfContentsPanel.test.tsx:62). Confirmed non-vacuous: removing the class makes the assertion fail.
The virtualized list keeps its pre-existing scrollbar-editor (VirtualMarkdownTableOfContents.tsx:37); this PR does not touch that path and the body documents the intent. No actionable findings.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
Contributor
Author
|
Closing as superseded by #36561, which fixes the built-in color defaults (WCAG AA pairs, light-mode active tab and the TOC scrollbar). Thank you for this PR, it shaped the design. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

ELI5
A long Markdown table of contents now uses Orca’s themed scrollbar instead of the operating system’s default appearance.
What Changed
Adopt @CodeHourra’s #18328: add the existing
scrollbar-sleekclass to the ordinary heading list and retain the contributor’s regression assertion. Both stevelliu author commits are preserved. The first commit’s Finder metadata is removed by the author’s second commit, so the final diff contains only the component and its test (+2/−1; production +1/−1, net zero).The conflict with today’s virtualized branch was resolved by retaining the current component and applying the class only to its ordinary list. Large-document Preview already uses
scrollbar-editorand keeps that behavior.Why
The style guide requires an existing scrollbar theme on overflow containers. This reuses the canonical list theme, including transparent track and hover feedback. No new CSS, library changes, sizing rules, or navigation logic are needed.
Linked Issue
Addresses #18327. Keep the issue open until the reporter’s original native-scrollbar appearance is confirmed.
Visual Proof
Full-app hidden macOS captures with the same synthetic heading list. The current baseline has an unthemed, dark native thumb rather than the bright track shown in the contributor’s older isolated-component capture; it computes
autofor width and color. The fix computesthinwith Orca’s neutral thumb and transparent track.Git rich editor before / after:
Earlier folder-file Preview renderer control before / after (not a registered folder workspace):
Testing
The contributor’s assertion failed on the baseline and passes after adoption. All 39 tests in six suites pass, covering the shared panel, collapse state, visibility, heading navigation, and stored Markdown view state. Full typecheck, full lint, changed-code quality, pinned standalone React Doctor changed-lines gate, and a fresh Electron build pass.
Actual compiled macOS controls run before and after: 14 cases each, covering Git workspaces and folder-file renderer controls, rich editor and Preview, dark/light themes, short lists, and the existing large-document virtual list. The earlier folder cases used incomplete project-group metadata and do not establish normal-folder acceptance. Hover feedback, list scrolling, last-heading navigation, panel width, horizontal overflow, clean state, and unchanged authored disk bytes are checked. Screenshots were inspected and owned apps closed.
Reviewer check: open a Markdown file with many headings, show Table of Contents, and scroll its list in dark/light themes. Navigate to its last heading and repeat in rich editing and Preview.
Corrected folder acceptance
The earlier folder-file captures and receipts remain as renderer controls. A separate hidden Linux Electron 43.7.5 run creates a real folder group with its parent path supplied at creation, then verifies the renderer catalog, local execution host, active workspace, file owner, and a unique mounted document marker before and after every case.
All 14 Git/ordinary-folder cases pass: rich editing and Preview under both themes, short lists, and the existing large-document virtual list. Eight trusted native wheel checks scroll the long list from 0 to 400 and then navigate to Chapter 080. Ordinary lists use the themed thin scrollbar and hover feedback; short lists do not overflow, and the virtual list retains its existing theme. All cases keep the panel width at 240 px, have no horizontal overflow, and leave clean state and authored disk bytes intact. There are no page errors, and the owned app is closed.
This is fixed acceptance on the read-only combined build at
b7ac4927068c6074acda61334b097881551857d6, which includes this PR. Main and renderer build hashes match before and after; this PR's source and head are unchanged. It does not establish a genuine ordinary-folder baseline or the reporter's exact scrollbar preference.Review
Independent review checked the source, regression tests, and rendered before/after proof.
Agent skill upstream boundary
Notes
Low risk: one existing presentation class on an existing overflow container. Scrollbar rendering varies by OS and scrollbar preference. Windows, live SSH, and physical mobile devices were not runtime-tested; corrected ordinary-folder acceptance uses the separate Linux run below, and this changes no host, filesystem, IPC, or remote-wire behavior. The macOS reporter’s exact older bright-track configuration remains unverified.
Stacked on #25540’s shared lint repair to keep the two-file diff focused.
Checklist