-
Notifications
You must be signed in to change notification settings - Fork 266
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
docs: More legible font colour in dark mode #577
Conversation
362c8df
to
46245b2
Compare
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.
Good catch and nice improvements.
website/src/pages/index.tsx
Outdated
|
||
<div className="flex flex-col items-center"> | ||
<div className="text-left my-4"> | ||
<p className="-ml-5">Current Podman Desktop plug-ins: Podman, Docker, Lima and CRC/OpenShift Local.</p> | ||
<p className="-ml-5 text-base">Current Podman Desktop plug-ins: Podman, Docker, Lima and CRC/OpenShift Local.</p> |
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.
maybe, instead of defining a new class, it should be the "default" color for dark theme which should be changed?
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.
I believe this is actually missing the class! Most <p>
have text-base
as the class.
website/src/pages/index.tsx
Outdated
@@ -117,7 +117,7 @@ function Hero() { | |||
<h1 className="title-font sm:text-4xl text-3xl lg:text-6xl mb-4 font-medium text-gray-900 dark:text-white"> | |||
Containers and Kubernetes for application developers | |||
</h1> | |||
<p className="text-base text-gray-700 dark:text-gray-500 md:text-lg"> | |||
<p className="text-base text-gray-700 md:text-lg"> |
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-700
is supposed to be giving the color to the paragraph.
Here, by overriding the class, you are defining the color in another place and it's not following the "tailwind" practices.
I think it would be easier to switch the color of the paragraph to text-gray-100
or something like that.
You can check the colors provided out of the box by tailwind here: https://tailwindcss.com/docs/text-color
46245b2
to
44ccda0
Compare
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.
I've gone ahead and updated the PR! I didn't actually need the dark:
class.
Looks like the custom css will accurate fix all the issues with the legibility.
Still learning tailwindcss, so hopefully this looks good!
website/src/pages/index.tsx
Outdated
|
||
<div className="flex flex-col items-center"> | ||
<div className="text-left my-4"> | ||
<p className="-ml-5">Current Podman Desktop plug-ins: Podman, Docker, Lima and CRC/OpenShift Local.</p> | ||
<p className="-ml-5 text-base">Current Podman Desktop plug-ins: Podman, Docker, Lima and CRC/OpenShift Local.</p> |
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.
I believe this is actually missing the class! Most <p>
have text-base
as the class.
Linter still failing, going to update this PR 👍 |
0de8655
to
720772a
Compare
bccbea4
to
fcfb0f5
Compare
Updated! I've:
|
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.
reported few minor fixes
thanks 👍
04a670f
to
5c8e987
Compare
### What does this PR do? * Updates the website with "gray-300" font colour in dark mode, as the previous colour was not very legible to read. ### Screenshot/screencast of this PR <!-- Please include a screenshot or a screencast explaining what is doing this PR --> See below difference: ### What issues does this PR fix or reference? <!-- Please include any related issue from Podman Desktop repository (or from another issue tracker). --> N/A (let me know if I need to open an issue)! It's a quickfix for the website. ### How to test this PR? `yarn run docusaurus start` <!-- Please explain steps to reproduce --> Signed-off-by: Charlie Drage <charlie@charliedrage.com> Signed-off-by: Charlie Drage <charlie@charliedrage.com>
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
5c8e987
to
0ef777a
Compare
@slemeur is it ok for you, now ? |
LGTM 👍 |
Website: More legible font colour in dark mode
What does this PR do?
previous colour was not very legible to read.
Screenshot/screencast of this PR
See below difference:
vs
What issues does this PR fix or reference?
N/A (let me know if I need to open an issue)! It's a quickfix for the
website.
How to test this PR?
yarn run docusaurus start