Skip to content

Commit d85dfb8

Browse files
author
Dominique Chuo
committed
fix dark mode navbar
1 parent 09a5ff1 commit d85dfb8

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

static/css/_navbar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@
429429
}
430430

431431
[data-theme='dark'] .navbar__link--active {
432-
background: #F8F8F7 !important;
432+
background: #383838 !important;
433433
color: #1A1A1A !important;
434434
border-color: #F8F8F7 !important;
435435
}

static/css/custom.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,23 @@
4444
/* Import Tailwind CSS with all styles consolidated */
4545
@import './tailwind.css';
4646

47-
/* Navbar active item styling */
47+
/* Navbar active item styling - Light mode */
4848
.navbar__link--active {
4949
color: white !important;
5050
}
5151

52-
/* Ensure active navbar items are visible */
52+
/* Ensure active navbar items are visible - Light mode */
5353
.navbar__item .navbar__link--active,
5454
.navbar__item.navbar__item--active .navbar__link {
5555
color: white !important;
5656
}
57+
58+
/* Dark mode - active navbar items should have dark text on light background */
59+
[data-theme='dark'] .navbar__link--active {
60+
color: #1A1A1A !important;
61+
}
62+
63+
[data-theme='dark'] .navbar__item .navbar__link--active,
64+
[data-theme='dark'] .navbar__item.navbar__item--active .navbar__link {
65+
color: #1A1A1A !important;
66+
}

0 commit comments

Comments
 (0)