mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-17 08:28:07 -05:00
[PR #1740] [MERGED] fix(labs): readability for navbar dropdowns and landing-page headings #23856
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/1740
Author: @farhan523
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/labs-dark-mode-dropdown-and-headings📝 Commits (2)
0aee34dfix(labs): readable navbar dropdown panels in dark modeb6aca9afix(labs): landing-page volume + cluster headings legible in dark mode📊 Changes
1 file changed (+65 additions, -0 deletions)
View changed files
📝
labs/assets/styles/dark-mode.scss(+65 -0)📄 Description
Summary
Two scoped fixes to
labs/assets/styles/dark-mode.scssfor the Co-Labs site in dark mode:.dropdown-menukeeps its light surface on the dark navbar, and items inherit the global teal link color — combined, the popover is unreadable. Adds a dark surface plus item, divider, and header styling.labs/index.qmdships an inline<style>block that hard-codes#1e293b !importanton.volume-headingand.cluster-heading, making "Volume I: Foundations", "Volume II: At Scale", "I. Foundations", "II. Build", "III. Optimize", "IV. Deploy", and "Capstone" invisible on the dark body. Overrides are scoped underhtml[data-bs-theme="dark"]so they outrank the inline rules without piling on more!important.Lab cards keep their white background in dark mode by design, so the in-card title / question colors were left untouched — only the headings sitting on the dark page background changed.
Test plan
quarto previewthe labs site (orlabs/tools/build_site.sh) and toggle dark mode.I. Foundations,II. Build,III. Optimize,IV. Deploy,Capstone) plus their· Labs 00–04meta suffixes are readable.[data-bs-theme="dark"]/ the dark-mode SCSS bundle).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.