Skip to content

Commit 246e9de

Browse files
authored
Fix: Improve accessibility of nav links in dark theme (#8)
1 parent bcdf091 commit 246e9de

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

frontend/src/Components/Page/Sidebar/PageSidebarItem.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616
&:hover,
1717
&:focus {
18-
color: var(--themePurple);
19-
text-decoration: none;
18+
color: var(--themeLightPurple);
2019
}
2120

2221
}
@@ -29,16 +28,18 @@
2928
}
3029

3130
.isActiveLink {
32-
color: var(--themePurple);
31+
color: var(--themeLightPurple);
32+
text-decoration: underline;
33+
text-underline-offset: 4px;
3334
}
3435

3536
.isActiveParentLink {
3637
background-color: var(--sidebarActiveBackgroundColor);
37-
color: var(--white);
38+
color: var(--themeLightPurple);
3839
}
39-
40+
4041
.sectionHeading {
41-
color: var(--white);
42+
color: var(--themeLightPurple);
4243
}
4344

4445
.iconContainer {

frontend/src/Styles/Themes/dark.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module.exports = {
3838

3939
themePink: whisparrPink,
4040
themePurple: whisparrPurple,
41+
themeLightPurple: '#c084fc',
4142
themeAlternatePink: '#c4337c',
4243
themeRed: '#c4273c',
4344
themeDarkColor: '#494949',

0 commit comments

Comments
 (0)