User story
As a Wikipedia contributor, I want the text representations of added and removed content to have at least a 4.5:1 contrast ratio on the background in both day and night mode on desktop and mobile.
Requirements
- Colours use design tokens added in T362861
- Colours appear as in the design spec
- Rules for colors must be defined centrally and use design tokens in https://github.com/wikimedia/mediawiki/blob/master/resources/src/mediawiki.diff.styles/diff.less and https://github.com/wikimedia/mediawiki/blob/cd9487d0160076aefd055a99d257e6984b8326d0/resources/src/mediawiki.special.changeslist/default.less
- All FIXMEs in Minerva relating to custom CSS variables replaced by tokens in Codex are removed
Designs
added | day mode | night mode |
byte content | @color-green-700 | @color-green-400 |
diff background | @color-blue-300 | @color-blue-700 |
diff border | @color-blue-300 | @color-blue-700 |
removed | day mode | night mode |
byte content | @color-red-700 | @color-red-400 |
diff background | @color-yellow-500 | @color-yellow-700 |
diff border | @color-yellow-500 | @color-yellow-700 |
QA
Check the following pages match the new color scheme in both day and night mode and mobile and desktop (4 test URLs per bullet point):
- https://en.wikipedia.org/wiki/Special:RecentChanges?hidebots=1&hidecategorization=1&hideWikibase=1&limit=500&days=30&enhanced=1&damaging__likelybad_color=c4&damaging__verylikelybad_color=c5&urlversion=2
- https://en.wikipedia.org/wiki/Special:Contributions/Jdlrobson
- https://en.wikipedia.org/w/index.php?title=Template_talk:Navbox&action=history
- https://en.wikipedia.org/w/index.php?title=Special:Watchlist