Skip to content

Improve Sidebar Accessibility and Fix Syntax Highlighting in Dark Mode#98

Open
tinyfroggy wants to merge 1 commit intoibelick:mainfrom
tinyfroggy:feature/dark-mode-syntax-highlighting
Open

Improve Sidebar Accessibility and Fix Syntax Highlighting in Dark Mode#98
tinyfroggy wants to merge 1 commit intoibelick:mainfrom
tinyfroggy:feature/dark-mode-syntax-highlighting

Conversation

@tinyfroggy
Copy link
Copy Markdown

Summary

This PR focuses on improving usability and accessibility by removing fragile UI workarounds and replacing them with more robust, standards-based solutions. These issues became especially noticeable due to a hardware limitation on my side, which helped surface real accessibility problems.

Changes

  1. Sidebar Scrolling & Accessibility Improvements
    My mouse scroll wheel is currently broken, which unintentionally exposed a major usability issue in the documentation sidebar. Due to restrictive bottom padding (pb-20) and custom scrollbar CSS, navigating the sidebar without a perfectly functioning scroll wheel was extremely difficult.

To address this, I removed these layout and scrollbar “hacks” and restored a standard, native scrolling behavior. This makes the sidebar reliably navigable for:

Users with hardware limitations

Trackpad users with non-default scrolling settings

Anyone relying on standard OS/browser scrolling behavior

Overall, this significantly improves accessibility and day-to-day usability.

  1. Syntax Highlighting Refactor (Light & Dark Mode)
    Code blocks in dark mode were previously broken due to aggressive !important overrides that forced most syntax colors to white, flattening the visual hierarchy and harming readability.

I replaced these overrides with a proper dual-theme syntax highlighting setup using GitHub Light and GitHub Dark themes. Syntax highlighting is now:

Fully readable in both light and dark modes

Consistent with the app’s theme system

Free of manual CSS patches or forced overrides

…ith professional transformers.

- Fixed Dark Mode: Restored syntax highlighting by removing forced white-text overrides.
- Sidebar Fixes: Enabled natural scrolling and removed redundant padding/hacks.
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Jan 21, 2026

@tinyfroggy is attempting to deploy a commit to the julienthibeaut's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant