-
Notifications
You must be signed in to change notification settings - Fork 977
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
update the link colors on darkmode #4201
update the link colors on darkmode #4201
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
The color adjustments look great in dark mode! Would it be possible to make the same edits for links within the blog? https://docs-getdbt-com-git-fix-insufficient-contrast-o-3250d0-dbt-labs.vercel.app/blog
Right now, the blog links go darker on hover and become hard to read in dark mode.
.alert--secondary, | ||
.alert--secondary a, | ||
.alert--secondary svg { | ||
--ifm-alert-background-color: #474748; | ||
color: white !important; | ||
fill: white !important; | ||
} |
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.
Do you know of a page where this is used for me to checkout?
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.
Here's one with the alert--secondary which the the note alert:
https://docs-getdbt-com-git-fix-insufficient-contrast-o-3250d0-dbt-labs.vercel.app/docs/cloud/connect-data-platform/connect-apache-spark
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 @JKarlavige. I've added style updates for the blog hrefs.
…ontrast-on-dark-background
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.
lgtm!!
…ontrast-on-dark-background
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.
Hi Trever! Woo this is a big one, thanks for submitting this. I love these accessibility updates but changes like these are tricky cuz they touch every page!
I noticed that on the Materializations page, at the very bottom, the Discourse widget CTA is now washed out and does not meet contrast guidelines.
After checking a fair amount of pages, that was the only issue I could find! Nice work.
great catch @breezyfasano ! Yeah it was very tricky! You fix one thing and find you've messed up another thing lol |
should be fixed now: https://docs-getdbt-com-git-fix-insufficient-contrast-o-3250d0-dbt-labs.vercel.app/docs/build/materializations |
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.
lgtm!! Thanks for fixing Trever @zesuma ! I'll go ahead and merge now.
What are you changing in this pull request and why?
https://app.asana.com/0/1200099998847559/1204216689849797/f
Description of the Issue
Review pages and for any links on backgrounds with the color of #262a38 ($neutral100), change the hover color of those links to #1FA4A3 ($teal30) so that they have appropriate contrast per WebAIM requirements.
Links
Use the WebAIM web extension to check contrast
https://wave.webaim.org/extension/
NOTE: I limited the brightness on the links a bit since this was causing unanticipated issues on images washing out. I updated the link color and link hover color to #1FA4A3 on dark mode.
Preview:
https://docs-getdbt-com-git-fix-insufficient-contrast-o-3250d0-dbt-labs.vercel.app/docs/introduction
Checklist
Adding new pages (delete if not applicable):
website/sidebars.js
Removing or renaming existing pages (delete if not applicable):
website/sidebars.js
website/static/_redirects