Skip to content

Commit 47d4638

Browse files
committed
fix(a11y): improved contrast
1 parent 987108a commit 47d4638

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

src/components/Footer/Footer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const footerLinkClasses =
1010

1111
const Footer = () => (
1212
<footer className="w-full flex-[0_0_auto] print:hidden">
13-
<Container className="mx-auto max-w-[900px] px-5 pb-[30px] pt-[40px] text-center [&_a]:text-[#3b7eb5]">
13+
<Container className="mx-auto max-w-[900px] px-5 pb-[30px] pt-[40px] text-center [&_a]:text-[#465E69] [&_a:hover]:text-[#2B3A42] dark:[&_a]:text-[#8dd6f9] dark:[&_a:hover]:text-white">
1414
<div className="mb-[24px] flex justify-center">
1515
<a href="https://openjsf.org" target="_blank" rel="noopener noreferrer">
1616
<img

src/components/Markdown/Markdown.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@
293293
font-family:
294294
"Source Code Pro", Consolas, "Liberation Mono", Menlo, Courier, monospace;
295295
@apply text-[90%] mx-0.5 py-0.5 px-1.5 whitespace-normal bg-[rgba(70,94,105,0.05)] rounded-[3px];
296+
color: #2b3a42;
296297
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
297298
}
298299

@@ -455,3 +456,11 @@
455456
.dark .markdown aside.todo > .todo__prefix {
456457
@apply text-white;
457458
}
459+
460+
.markdown aside.tip a {
461+
color: #465e69;
462+
}
463+
464+
.markdown aside.tip a:hover {
465+
color: #2b3a42;
466+
}

src/components/Navigation/Navigation.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function Navigation({ links, pathname, hash = "", toggleSidebar }) {
248248
>
249249
{link.children.map((child) => {
250250
const classNames =
251-
"text-blue-400 dark:text-[#69a8ee] py-5 text-sm capitalize hover:text-black dark:hover:text-white";
251+
"text-[#465E69] dark:text-[#8dd6f9] py-5 text-sm capitalize hover:text-[#2B3A42] dark:hover:text-white";
252252
const isActive = location.pathname.startsWith(child.url);
253253
return (
254254
<NavLink

src/styles/theme.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/* Aside/callout colors */
1616
--color-aside-border: #dddddd;
1717
--color-aside-tip-bg: #eaf8ff;
18-
--color-aside-tip-text: #4e7182;
18+
--color-aside-tip-text: #465e69;
1919
--color-aside-tip-border: #1eb4ff;
2020
--color-aside-warning-bg: #fdf5d8;
2121
--color-aside-warning-text: #716b53;
@@ -82,7 +82,7 @@
8282
--color-heading-dark: #32434a;
8383
--color-aside-border: #dddddd;
8484
--color-aside-tip-bg: #eaf8ff;
85-
--color-aside-tip-text: #4e7182;
85+
--color-aside-tip-text: #465e69;
8686
--color-aside-tip-border: #1eb4ff;
8787
--color-aside-warning-bg: #fdf5d8;
8888
--color-aside-warning-text: #716b53;

0 commit comments

Comments
 (0)