From 530345a3184366a54a97a6cde8739cfc7050c4ba Mon Sep 17 00:00:00 2001 From: Volker E Date: Mon, 15 Jul 2019 05:34:56 -0700 Subject: [PATCH] Add success variables to message group and unify values MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Adding `@*success` variables to “Message” variable group and unifying values with Style Guide. Also renaming `@colorErrorText` to @colorError` & `@colorWarningText` to @colorWarning` to stay in naming convention. Bug: T226795 Change-Id: I49ca4b8f510888dff7a2487470174666143bcd76 --- .../mediawiki.ui/variables.less | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/resources/src/mediawiki.less/mediawiki.ui/variables.less b/resources/src/mediawiki.less/mediawiki.ui/variables.less index e493e59cc3..c0e53a7229 100644 --- a/resources/src/mediawiki.less/mediawiki.ui/variables.less +++ b/resources/src/mediawiki.less/mediawiki.ui/variables.less @@ -65,8 +65,26 @@ @colorButtonTextHighlight: @colorGray4; @colorButtonTextActive: @colorGray1; @colorDisabledText: @colorGray7; -@colorErrorText: #d33; -@colorWarningText: #705000; + +// Messages +// Messages: Error +@backgroundColorError: #fee7e6; +// Use only for inlined messages, boxed messages require `@colorTextEmphasized` for +// minimum contrast ratio. +@colorError: #d33; +@borderColorError: @colorError; +// Messages: Warning +@backgroundColorWarning: #fef6e7; +@colorWarning: @colorTextEmphasized; +@borderColorWarning: #fc3; +// Messages: Success +@backgroundColorSuccess: #d5fdf4; +@colorSuccess: #14866d; +@borderColorSuccess: @colorSuccess; + +// FIXME: Remove after a few weeks, when extensions got updated +@colorErrorText: @colorError; +@colorWarningText: @colorWarning; // UI colors @backgroundColorInputBinaryChecked: @colorProgressive; @@ -105,9 +123,3 @@ // Form input sizes, equal to OOUI at 14px base font-size @sizeInputBinary: 1.5625em; - -// Messages -@backgroundColorError: #fee7e6; -@borderColorError: #d33; -@backgroundColorWarning: #fef6e7; -@borderColorWarning: #fc3; -- 2.20.1