-
Notifications
You must be signed in to change notification settings - Fork 332
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 button and link colors for themes #2026
base: main
Are you sure you want to change the base?
Conversation
📦 Docs artifacts are ready: https://github.com/elixir-lang/ex_doc/actions/runs/12837307068/artifacts/2449409122 |
Thank you @hichemfantar. One issue with this change is that we also use ExDoc to generate docs for Erlang, and now links in Erlang and Elixir would look different. Plus links in Erlang would look in red, which was too distracting. I am afraid we may not go ahead with this one. :( |
Let me see what it looks like in erlang and I’ll get back to you |
I believe you can do |
light mode already looks good but i changed to a lighter shade in dark mode and it looks good passes wcag |
Yes, I think the red links are too jarring, sorry. :( If the current ones do not offer enough contrast, then we can address that, but it would be best if the link colors are not theme dependent. Thanks! |
also there needs to sufficient contrast between link text colors and non link text colors. it's why browsers by default use blue for links |
I actually think using blue, the browser default, would be a great idea. It is not theme specific and addresses all issues. WDYT? |
sounds good, i'll give it a shot |
should be good now, using the default chrome link colors |
… for dark and light themes
i believe we have reached the ending of this story. |
perhaps get rid the of the noUnderline variables and just name them links? |
renamed the variables to be clearer and got rid of duplicates |
please tell me everything looks good on your end so we could put this saga to an end |
Web Content Accessibility criteria here we come |
--linksNoUnderline: var(--mainLightest); | ||
--linksNoUnderlineVisited: var(--mainLight); | ||
--link-color: var(--mainLightest); | ||
--link-visited-color: var(--mainLight); |
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.
Sorry, to be clear, I was thinking we should move these out of the language custom props and use the same for both languages (so they would go to the general prop definitions). I think having both languages use the same colors for links would be a huge plus for overall ecosystem consistency. Thoughts?
I think they should remain clear as links, i actually didn't even know they were clickable until i enabled link coloring. |
Adjust button title color and link colors to improve visibility in both dark and light themes.