Last modified: 2014-06-25 08:22:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61093, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59093 - Colors used to mark added/deleted spaces in diffs should have higher contrast
Colors used to mark added/deleted spaces in diffs should have higher contrast
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: accessibility, design, easy
Depends on:
Blocks: 34710
  Show dependency treegraph
 
Reported: 2013-12-29 00:04 UTC by Quim Gil
Modified: 2014-06-25 08:22 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Quim Gil 2013-12-29 00:04:00 UTC
The colors used to mark diffs are unnecessarily light. They work well when whole words or sentences are changed, but for single characters or spaces i almost need to stick my nose to the screen to find what is changing.

See for instance: https://ca.wikipedia.org/w/index.php?title=Anarquisme_a_Espanya&curid=1010721&diff=12614384&oldid=12591573

Please use colors with higher contrast with the white background.
Comment 1 Quim Gil 2013-12-29 00:14:23 UTC
See for instance the darker red/green colors used to mark specific changes at https://gerrit.wikimedia.org/r/#/c/100000/1/ProofreadPage.i18n.php

For what is worth, mobile is also using darker red/green (in a confusing way, but that is out of scope here):

https://ca.m.wikipedia.org/w/index.php?title=Anarquisme_a_Espanya&curid=1010721&diff=12614384&oldid=12591573
Comment 2 This, that and the other (TTO) 2013-12-30 11:09:13 UTC
Light colours are used for accessibility reasons, in order to maintain a good contrast with the foreground (text). See bug 11374.

Translatewiki puts a dotted border around the text being changed, e.g. https://translatewiki.net/w/i.php?diff=5191317&oldid=5191063 which might be good for visibility, even if not especially attractive.
Comment 3 Quim Gil 2013-12-30 21:36:00 UTC
Ok, point taken. Still, If I don't see the changes, someone with visual impairment will have even a harder time.

Maybe the current rule works (although I would still welcome consistency of colors between mobile and desktop). However, maybe a different behavior could be designed for one character changes, where the light colors is easy to be camouflaged? The dotted border isn't attractive indeed, but at least does the job you want to do when looking at a diff.
Comment 4 Derk-Jan Hartman 2013-12-31 19:16:29 UTC
The last time we discussed diff colors it was a 5 month ordeal.... :D
Comment 5 Brandon Harris 2013-12-31 19:25:24 UTC
Can we just close this and move on?
Comment 6 Quim Gil 2013-12-31 22:41:11 UTC
Let me try again:

Looking at a diff, it is very difficult to find changes in added/removed spaces because the colors used by default don't have much contrast with the white background. It is difficult for an average person with an average screen, and I guess it is even harder with users with visual impairment.

See for instance

https://ca.wikipedia.org/w/index.php?title=Anarquisme_a_Espanya&curid=1010721&diff=12614384&oldid=12591573

The current colors are fine to mark changes in text since the text itself is marked in bold. However, in the case of spaces there are no characters involved.

One solution could be to use only in this situation the darker version of the same colors that is being used for the border of the box of the paragraphs changed. Without changing any color scheme, this would provide enough contrast to find easily those single spaces in diffs.
Comment 7 Isarra 2014-01-10 19:14:06 UTC
Using background colours may be the wrong approach for exactly this reason - to get the contrast high enough for spaces to stand out (or even show up, depending on your screen and/or eyesight), you wind up with contrast too high to easily read the text itself. Using bolding and colour worked well before for the text, but that didn't show space changes.

The dotted border is probably more along the lines of what we would want - either a border, or a colourful underline (like what spellcheckers do), or some other kind of formatting change that doesn't interfere with the text itself.

Regardless of what you do, though, some people will find it ugly. That's just a given.
Comment 8 Gerrit Notification Bot 2014-01-10 19:42:48 UTC
Change 106763 had a related patch set uploaded by Jackmcbarn:
Increase changed text background contrast

https://gerrit.wikimedia.org/r/106763
Comment 9 Helder 2014-02-11 13:53:59 UTC
FYI: I use a small script to highlight white-space changes:
https://pt.wikibooks.org/wiki/User:Helder.wiki/Tools/HighlightSmallDiffs.js

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links