-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Ensure consistent link underline and color on hover #14914
Ensure consistent link underline and color on hover #14914
Conversation
Thanks for making a pull request to jupyterlab! |
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.
All links are now underlined as standard expectation based on: https://www.w3.org/TR/html401/struct/links.html
This is not what the document linked to says - it says for example underlined
When you hover over a link, the link is both bold and underlined
I do not agree with this design direction. All of the web uses underline on hover. Using bold on hover will lead to layout shifts. So this is -1 from me here.
Link that has been visited changes to a grey color
Changing colour to indicate visited links is probably fine, but I would request to add a semantic variable so that themes (and users) can override it easily.
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
|
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.
My previous opinion that we should not switch to underline/bold still stands. However, I do think that maybe it could be opt-in via a setting (which would involve creating a dedicated accessibility package).
for more information, see https://pre-commit.ci
@s596757 the lint job is failing can you run |
@krassowski I have run it :) |
@s596757 did you commit and push changes? The lint check is still failing with:
|
@s596757 I addressed the lint failure for you, can you add before/after screenshots in both light and dark mode to the top-level comment, please? |
Closing in favour of #15181. |
Made CSS changes in order to ensure all links are visually distinct:
All links are now underlined as standard expectation based on:
https://www.w3.org/TR/html401/struct/links.html
When you hover over a link, the link is both bold and underlined
Link that has been visited changes to a grey color
Tested visually
Based on feedback from UX engineer
Ticket based on issue #9399 Text issue number 2
Please provide additional feedback and notes on your definition of visually distinct