VolkerE has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/272626

Change subject: MediaWiki theme: Disabled buttonElement icon should be gray
......................................................................

MediaWiki theme: Disabled buttonElement icon should be gray

Adding grayscale `filter` to make disabled icon on `buttonElement` gray.

Bug: T114044
Change-Id: I9509acac6843785f1681150d4ecca654e78d9d6c
---
M src/themes/mediawiki/common.less
M src/themes/mediawiki/elements.less
2 files changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/26/272626/1

diff --git a/src/themes/mediawiki/common.less b/src/themes/mediawiki/common.less
index eeb7426..e8bb77b 100644
--- a/src/themes/mediawiki/common.less
+++ b/src/themes/mediawiki/common.less
@@ -35,6 +35,7 @@
 @color-disabled-framed: #fff;
 @border-color-disabled: #ddd;
 @opacity-disabled: 0.2;
+@filter-disabled: grayscale( 100% );
 
 // Invalid Widget (validation error feedback)
 @color-invalid: #f00;
diff --git a/src/themes/mediawiki/elements.less 
b/src/themes/mediawiki/elements.less
index 41e7565..68bf769 100644
--- a/src/themes/mediawiki/elements.less
+++ b/src/themes/mediawiki/elements.less
@@ -93,6 +93,7 @@
                        > .oo-ui-iconElement-icon,
                        > .oo-ui-indicatorElement-indicator {
                                opacity: @opacity-disabled;
+                               filter: @filter-disabled;
                        }
                }
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/272626
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9509acac6843785f1681150d4ecca654e78d9d6c
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: VolkerE <volke...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to