Specify an explicit text colour on some components that change the background colour
authorDaniel Friesen <daniel@nadir-seen-fire.com>
Tue, 13 May 2014 01:19:53 +0000 (18:19 -0700)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 10 Nov 2017 18:37:30 +0000 (19:37 +0100)
These components separate themselves from the default colouring of the content
area by specifying a dedicated – typically light grey – background colour.

However they leave text colour unspecified and as a result if the skin should be
white on black instead of black on white this results in these components becoming
white on white or white on light grey and becoming unreadable.

Fix this by explicitly specifying a text colour to use where the background colour is set.

Bug: T66732
Change-Id: I12584de40a18929b610d46dceaea73f06fdc6541

resources/src/mediawiki.action/mediawiki.action.history.styles.css
resources/src/mediawiki.skinning/interface.css
resources/src/mediawiki/mediawiki.notification.css

index cad530b..73ec1a7 100644 (file)
@@ -11,6 +11,7 @@
 
 #pagehistory li.selected {
        background-color: #f8f9fa;
+       color: #252525;
        border: 1px dashed #a2a9b1;
 }
 
index 3e0d2b9..8cd25d8 100644 (file)
@@ -22,6 +22,7 @@ textarea {
 
 .editOptions {
        background-color: #eaecf0;
+       color: #252525;
        border: 1px solid #c8ccd1;
        border-top: 0;
        padding: 1em 1em 1.5em 1em;
index 633798d..481980f 100644 (file)
@@ -15,6 +15,7 @@
        margin-bottom: 0.5em;
        border: solid 1px #ddd;
        background-color: #fcfcfc;
+       color: #252525;
        /* Click handler in mediawiki.notification.js */
        cursor: pointer;