-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
style(PageLinks): improve dark-mode link contrast and tighten top spacing #8108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
7b83cb4
a63b232
0c9f2ad
1e8c4eb
e2a6c51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,11 +5,15 @@ import PropTypes from "prop-types"; | |||||
| const baseURL = "https://github.com/webpack/webpack.js.org/edit/main/"; | ||||||
|
|
||||||
| function Separator() { | ||||||
| return <span className="mx-5 text-black font-bold dark:text-white">·</span>; | ||||||
| return ( | ||||||
| <span className="mx-5 text-gray-500 font-semibold dark:text-gray-300"> | ||||||
| · | ||||||
| </span> | ||||||
| ); | ||||||
| } | ||||||
|
|
||||||
| const classes = | ||||||
| "text-gray-500 dark:text-gray-500 text-sm cursor-pointer font-sans hover:underline"; | ||||||
| "text-gray-400 dark:text-gray-200 text-sm cursor-pointer font-sans hover:underline hover:text-gray-500 dark:hover:text-white transition-colors"; | ||||||
|
|
||||||
| function _handlePrintClick(event) { | ||||||
| event.preventDefault(); | ||||||
|
|
@@ -21,7 +25,7 @@ export default function PageLinks({ page = {} }) { | |||||
| const editLink = page.edit || Url.resolve(baseURL, page.path); | ||||||
|
|
||||||
| return ( | ||||||
| <div className="print:hidden mt-20"> | ||||||
| <div className="print:hidden mt-8"> | ||||||
|
||||||
| <div className="print:hidden mt-8"> | |
| <div className="print:hidden mt-5"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text-gray-400isn’t defined in this repo’s Tailwind theme (seetailwind.config.jscolors: only gray 100/200/300/500/600/700/800/900). This class will not be generated, so the links may end up inheriting an unintended color in light mode. Use one of the configured grays (e.g., keeptext-gray-500or switch totext-gray-300/600) instead.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep 500, it is better