GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — Underline links for readability and a11y by hugovk · Pull Request #160 · python/python-docs-theme Conversation
|
|
@hugovk I was about to hit merge on this, but then I wondered: Should we tag it for backport to the active maintenance branches as well? Personally, I'm not seeing a downside to doing that, and a whole lot of benefits. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yes, using this on the active maintenance branches is good. Note we're in the https://github.com/python/python-docs-theme repo, not https://github.com/python/cpython. We'll release this theme to PyPI, and then it'll be used by the backport branches the next time they rebuild:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Good point, let's consider narrowing/lowering the underline, and see how GitHub and MDN do it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Updated to make the underline thinner, move it down a bit, and also increase the line height so it better fits in the gap. "Line height (line spacing) to at least 1.5 times the font size" is also one of the WCAG 2.1 guidelines, and improves accessibility through readability. https://www.w3.org/WAI/WCAG21/Understanding/text-spacing.html Here's how the earlier snippets with underscores look:
And from What's New in 3.13:
And from What's New in 3.12:
How does this look? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
This is definitely better and solves the potential confusion with underscores. I'm now -0 (from -1) on this since I still prefer the version without underlines, but if others prefer the underlines I'm fine with the change. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Pradyun Gedam <[email protected]>
There was an error while loading. Please reload this page.
|
Hi there @hugovk. Is there Discourse discussion for this? I believe there should be a discussion first. I would like to hear people's opinions. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
There wasn't a discussion for this, just this PR that was open for two months before merge, and one month before release. This was prompted by GitHub recently adding underlines for accessibility. In addition to approvals here, core devs were in support (on Discord), and some said underlines help with poor eyesight or colourblindness. Some references: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.