r94461 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94460‎ | r94461 | r94462 >
Date:14:40, 14 August 2011
Author:diebuche
Status:reverted (Comments)
Tags:design 
Comment:
Fix r94429 : Left and right side are still nearly the same color for 7% of the population. When I wrote to the list a while ago, no one argued for keeping the yellow scheme just because we're used to it. This makes it red/blue, also increases the highlight area ands adds a subtle border per Brandon Harris
Modified paths:
  • /trunk/phase3/resources/mediawiki.action/mediawiki.action.history.diff.css (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.history.diff.css
@@ -15,11 +15,11 @@
1616 font-weight: bold;
1717 }
1818 td.diff-addedline {
19 - background: #cfc;
 19+ background: #D1E7F6;
2020 font-size: smaller;
2121 }
2222 td.diff-deletedline {
23 - background: #ffa;
 23+ background: #F6E0D1;
2424 font-size: smaller;
2525 }
2626 td.diff-context {
@@ -31,14 +31,16 @@
3232 white-space: -moz-pre-wrap;
3333 white-space: pre-wrap;
3434 text-decoration: none;
 35+ padding: 2px 1px;
 36+ border: 1px solid gray;
3537 }
3638
3739 td.diff-addedline .diffchange {
38 - background: #0c0;
 40+ background: #75BCD8;
3941 }
4042
4143 td.diff-deletedline .diffchange {
42 - background: #cc0;
 44+ background: #D98462;
4345 }
4446
4547 table.diff {

Follow-up revisions

RevisionCommit summaryAuthorDate
r105278basic design file for our diffs...hashar09:15, 6 December 2011
r105280Diff colors now use the french Wikipedia scheme...hashar09:41, 6 December 2011
r112750[mediawiki.action.history.diff.css] Revert 1.19 style changes back to how it ...krinkle01:07, 1 March 2012
r112836Resolves bug #11374 and improves on r94429, r94461, r101147, r105280, r106884...tparscal21:27, 1 March 2012

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r94429(bug 11374) Red .diffchange text in the green 'added' area may be hard to rea...maxsem20:57, 13 August 2011

Comments

#Comment by Krinkle (talk | contribs)   23:52, 14 August 2011

Here's a few screenshots:

#Comment by MZMcBride (talk | contribs)   02:40, 29 August 2011

This is much too dark, in my opinion. I think the color change is fine, but the darker background makes reading the black text more difficult for me.

#Comment by Krinkle (talk | contribs)   11:22, 29 August 2011

Has this been confirmed at all with actual users for which this fix was needed ? On that matter, would be a good idea to A/B/C test the above three in general for people, that might uncover other problems with our diff-workflow (ie. find history page, find out how to compare revisions, and interpret the diff).

Suggest revert and confirmation first. Ideally user testing would take place on prototype, but a design that is agreed on on BugZilla pre-commit is good too. On bug 11374, Brandon actually suggested later to use green/blue instead of brown/blue, the commit jumped the gun, discusion wasn't ready yet.

#Comment by Jorm (WMF) (talk | contribs)   00:50, 8 September 2011

I'd like to see some user testing on this, actually. It's kind of lame that we don't have a test bed for it; can we get this deployed to testwiki and ask people to look at it? I would still like to see green/blue as well.

#Comment by 😂 (talk | contribs)   13:38, 5 December 2011

We can test it ourselves without having to merge & deploy it...just make the changes to testwiki's Common.css.

#Comment by Krinkle (talk | contribs)   22:16, 5 December 2011

See reply below with the 3 list items. I did this on prototype for now, showing each in a live diff demo.

#Comment by Krinkle (talk | contribs)   17:35, 8 September 2011

test.wikipedia.org isn't meant for that kind of testing. For now prototype is the place to do that sort of testing.

Since these are technically speaking very small changes I created a little environment on the Prototype wiki featuring all three Diff-styles.

http://prototype.wikimedia.org/

  • 1) "yellow/green. Changetext is highlighted by being bold and red"
  • 2) "yellow/green. Changetext is highlighted by being bold and on a slightly more saturated background"
  • 3) "brown/blue. Changetext is highlighted by being bold and on a darker background with a black border around it"

Personally I think, of these three, the 2nd one is a good candidate. Perhaps use blue on the left instead of yellow. The problem I see with the third option is that it's very crowded and busy and overal too dark (not enough contrast between the darkened background color and the black text and the black border around it.

#Comment by Hashar (talk | contribs)   11:33, 5 December 2011

Is there any progress on this revision?

#Comment by MaxSem (talk | contribs)   06:30, 6 December 2011

Since the ILIKEIT arguing isn't going to ever end, I propose to use the only improved coloring scheme widely tested on live humans: the French version. At least in one parameter it's definitely better than DieBuche's: it has lighter .diffchange background making it easier to read.

#Comment by Hashar (talk | contribs)   09:43, 6 December 2011

The french version is probably the best one for the moment. I have been bold and applied the change with r105280.

Marking this revision as reverted since mine basically override all the styles there.

A basic design file has been added as docs/uidesign/mediawiki.action.history.diff.html

Status & tagging log