LearnNewsExamplesServices
Frontmatter
id9504
titleList: Fix vertical scrollbar visibility and contrast
stateClosed
labels
bugai
assigneestobiu
createdAtMar 17, 2026, 8:25 PM
updatedAtMar 17, 2026, 8:27 PM
githubUrlhttps://github.com/neomjs/neo/issues/9504
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 17, 2026, 8:27 PM

List: Fix vertical scrollbar visibility and contrast

Closed v12.1.0 bugai
tobiu
tobiu commented on Mar 17, 2026, 8:25 PM

Problem:

  1. In Portal.view.examples.List (and other lists using useWrapperNode), the vertical scrollbar was getting pushed outside the visible area if the wrapper had padding. This occurred because .neo-list.neo-use-wrapper-node used position: absolute; width: 100%; height: 100%;, which expands to the wrapper's padding box size but starts at the static position (inside the padding), causing an overflow on the right/bottom.
  2. The scrollbar was not aware of the background color context, causing poor contrast in dark themes.

Solution:

  1. Replaced width: 100%; height: 100%; with inset: 0; in src/list/Base.scss for .neo-use-wrapper-node. This forces the list to exactly match the padding edge of the wrapper without overflowing.
  2. Introduced the --list-scrollbar-color-scheme CSS variable in all themes (dark/light) and applied it via color-scheme on .neo-list to ensure native scrollbars have the correct contrast against the background.
tobiu assigned to @tobiu on Mar 17, 2026, 8:25 PM
tobiu added the bug label on Mar 17, 2026, 8:25 PM
tobiu added the ai label on Mar 17, 2026, 8:25 PM
tobiu referenced in commit e031130 - "style(list): Fix vertical scrollbar visibility and contrast (#9504)" on Mar 17, 2026, 8:27 PM
tobiu
tobiu Mar 17, 2026, 8:27 PM

Fixed via e03113020.

tobiu closed this issue on Mar 17, 2026, 8:27 PM