classification
Title: visited-link styling is not accessible
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: berker.peksag Nosy List: berker.peksag, bukzor, docs@python, georg.brandl, ned.deily, python-dev
Priority: normal Keywords: patch

Created on 2014-10-24 19:53 by bukzor, last changed 2014-10-25 02:21 by berker.peksag. This issue is now closed.

Files
File name Uploaded Description Edit
link-color.patch bukzor, 2014-10-24 20:14
Messages (6)
msg229952 - (view) Author: Buck Evan (bukzor) * Date: 2014-10-24 19:53
The color needs adjusted such that it has at least 3:1 luminance contrast versus the surrounding non-link text. (See "non-inheritable" https://docs.python.org/3/library/os.html#os.dup)

See also:
 * http://www.w3.org/TR/WCAG20/#visual-audio-contrast-without-color
 * http://www.w3.org/WAI/WCAG20/Techniques/working-examples/G183/link-contrast.html

Given that the surrounding text is #222, the a:visited color should be bumped from #30306f to #6363bb in order to meet the 3:1 luminance-contrast guideline while preserving the hue and saturation.

By the same calculation, the un-visited links are slightly too dark and should be bumped from #00608f to #0072aa

Validation was done here: http://juicystudio.com/services/luminositycontrastratio.php

Luminance adjustments done here: http://colorizer.org/
msg229954 - (view) Author: Buck Evan (bukzor) * Date: 2014-10-24 20:14
Proposed patch attached.
msg229955 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014-10-24 20:32
+1  It's a fairly subtle change but definitely an improvement IMO (as viewed with vanilla Safari and Firefox settings on OS X).
msg229957 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2014-10-24 20:48
Sounds good to me.
msg229974 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-10-25 02:20
New changeset a3481025a742 by Berker Peksag in branch '3.4':
Issue #22723: Make link styling more accessible.
https://hg.python.org/cpython/rev/a3481025a742

New changeset 56e87f2c6d3c by Berker Peksag in branch 'default':
Issue #22723: Make link styling more accessible.
https://hg.python.org/cpython/rev/56e87f2c6d3c
msg229975 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2014-10-25 02:21
Thanks for the patch, Buck.
History
Date User Action Args
2014-10-25 02:21:27berker.peksagsetstatus: open -> closed
resolution: fixed
2014-10-25 02:21:08berker.peksagsetversions: + Python 3.4, Python 3.5
messages: + msg229975

assignee: docs@python -> berker.peksag
type: enhancement
stage: resolved
2014-10-25 02:20:04python-devsetnosy: + python-dev
messages: + msg229974
2014-10-24 20:48:20georg.brandlsetmessages: + msg229957
2014-10-24 20:41:05berker.peksagsetnosy: + georg.brandl, berker.peksag
2014-10-24 20:32:10ned.deilysetnosy: + ned.deily
messages: + msg229955
2014-10-24 20:14:49bukzorsetfiles: + link-color.patch
keywords: + patch
messages: + msg229954
2014-10-24 19:53:20bukzorcreate