Skip to content

Commit

Permalink
refactor: Fix lighthouse accessibility issue in footer links (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian authored Dec 4, 2024
1 parent f68e65a commit 550fcde
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions src/components/footer/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,25 @@
margin-left: 0.625rem;
}

/**
* Ideally kept sync'd with the markdown links:
* https://github.com/preactjs/preact-www/blob/f68e65aadbd19b042921cc175aa256f3aa248768/src/style/markdown.css#L18
*/
a {
color: var(--color-footer-link);
text-decoration-skip-ink: auto;
text-decoration: underline;
text-decoration-color: var(--color-table-border);
text-decoration-thickness: 1px;

&:hover,
&:focus {
text-decoration-color: currentColor;
}

&:hover,
&:focus {
color: var(--color-link-hover);
}
}
}
2 changes: 1 addition & 1 deletion src/style/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

&:hover,
&:focus {
color: #ff89ff;
color: var(--color-link-hover);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/style/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
--color-brand-triplet: 103, 58, 184;
--color-brand-light: #8f61e1;
--color-link: #673ab8;
--color-link-hover: #ff89ff;
--color-btn: #673ab8;
--color-btn-secondary: #673ab8;
--color-btn-background: #eee;
Expand Down

0 comments on commit 550fcde

Please sign in to comment.