Skip to content

Commit b08ba0c

Browse files
authored
style(PageLinks): improve dark-mode link contrast and tighten top spacing (#8108)
1 parent f0580bc commit b08ba0c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/components/PageLinks/PageLinks.jsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ import PropTypes from "prop-types";
55
const baseURL = "https://github.com/webpack/webpack.js.org/edit/main/";
66

77
function Separator() {
8-
return <span className="mx-5 text-black font-bold dark:text-white">·</span>;
8+
return (
9+
<span className="mx-5 text-gray-500 font-semibold dark:text-gray-300">
10+
·
11+
</span>
12+
);
913
}
1014

1115
const classes =
12-
"text-gray-500 dark:text-gray-500 text-sm cursor-pointer font-sans hover:underline";
16+
"text-gray-500 dark:text-gray-200 text-sm cursor-pointer font-sans hover:underline hover:text-gray-500 dark:hover:text-white transition-colors";
1317

1418
function _handlePrintClick(event) {
1519
event.preventDefault();
@@ -21,7 +25,7 @@ export default function PageLinks({ page = {} }) {
2125
const editLink = page.edit || Url.resolve(baseURL, page.path);
2226

2327
return (
24-
<div className="print:hidden mt-20">
28+
<div className="print:hidden mt-8">
2529
<a className={classes} href={editLink}>
2630
Edit this page
2731
</a>

0 commit comments

Comments
 (0)