mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-06 17:49:07 -05:00
[PR #1633] fix(instructors): make left sidebar readable in dark mode #9239
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1633
Author: @farhan523
Created: 5/3/2026
Status: 🔄 Open
Base:
dev← Head:fix/instructors-dark-mode-sidebar📝 Commits (1)
bb4fc7bfix(instructors): make left sidebar readable in dark mode📊 Changes
1 file changed (+66 additions, -3 deletions)
View changed files
📝
instructors/assets/styles/dark-mode.scss(+66 -3)📄 Description
Summary
The left navigation sidebar on the Instructors site (
/instructors/) was unreadable in dark mode — section headers and links kept their light-theme colors against the dark background.Root cause: the dark-mode rule targeted
.sidebar .sidebar-item a, but Quarto renders the floating sidebar as<a class=\"sidebar-link\">and<a class=\"sidebar-item-toggle\">directly (not nested inside an.sidebar-itemanchor wrapper), so none of the existing color overrides matched.Changes
instructors/assets/styles/dark-mode.scssa.sidebar-link,.sidebar-item-toggle,.menu-text,.sidebar-item-text,.chapter-number.#TOC/nav[role=\"doc-toc\"]) for consistency.#quarto-sidebar a.sidebar-link.active) so the active state isn't overridden by Bootstrap'sactivelink color.Before / After
| Before | After |


|
|
|
Test plan
quarto preview instructorsand toggle to dark mode🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.