Skip to content

Commit a3b300a

Browse files
committed
fix(footer): align legal link hover color with adjacent nav
1 parent 987108a commit a3b300a

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

src/components/Footer/Footer.jsx

Lines changed: 3 additions & 3 deletions
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">
1414
<div className="mb-[24px] flex justify-center">
1515
<a href="https://openjsf.org" target="_blank" rel="noopener noreferrer">
1616
<img
@@ -20,7 +20,7 @@ const Footer = () => (
2020
/>
2121
</a>
2222
</div>
23-
<p className="mx-auto text-[15px] leading-[1.6] text-[#333333] dark:text-[#e0e0e0]">
23+
<p className="footer-legal-links mx-auto text-[15px] leading-[1.6] text-[#333333] dark:text-[#e0e0e0]">
2424
Copyright <a href="https://openjsf.org">OpenJS Foundation</a> and
2525
webpack contributors. All rights reserved. The{" "}
2626
<a href="https://openjsf.org">OpenJS Foundation</a> has registered
@@ -36,7 +36,7 @@ const Footer = () => (
3636
holders. Use of them does not imply any affiliation with or endorsement
3737
by them.
3838
</p>
39-
<p className="mx-auto mt-[18px] text-[15px] leading-[1.6] text-[#333333] dark:text-[#e0e0e0]">
39+
<p className="footer-legal-links mx-auto mt-[18px] text-[15px] leading-[1.6] text-[#333333] dark:text-[#e0e0e0]">
4040
<a href="https://openjsf.org">The OpenJS Foundation</a> |{" "}
4141
<a href="https://terms-of-use.openjsf.org">Terms of Use</a> |{" "}
4242
<a href="https://privacy-policy.openjsf.org">Privacy Policy</a> |{" "}

src/styles/index.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,15 @@ body {
6666
.screen-reader-only {
6767
@apply sr-only;
6868
}
69+
70+
.footer-legal-links a {
71+
@apply text-[#3b7eb5] transition-colors duration-[250ms];
72+
}
73+
74+
.footer-legal-links a:hover {
75+
color: var(--color-brand-link-hover);
76+
}
77+
78+
.dark .footer-legal-links a:hover {
79+
color: var(--color-dark-link-hover);
80+
}

0 commit comments

Comments
 (0)