From a24cad1a1cdce76ae77af889181f20f6eb38b0c9 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Wed, 4 Jul 2018 11:19:45 +0200 Subject: Fix accessibility invert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/accessibility/css/themedark.scss | 2 +- apps/accessibility/lib/Controller/AccessibilityController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/accessibility') diff --git a/apps/accessibility/css/themedark.scss b/apps/accessibility/css/themedark.scss index ecde4ec4c8a..fc33b333ce9 100644 --- a/apps/accessibility/css/themedark.scss +++ b/apps/accessibility/css/themedark.scss @@ -45,7 +45,7 @@ $color-border-dark: lighten($color-main-background, 14%); } // since svg icons are inverted, revert to white for the header -#header-right > * { +.header-right > * { [class^='icon-'], [class*=' icon-'] { filter: invert(100%); } diff --git a/apps/accessibility/lib/Controller/AccessibilityController.php b/apps/accessibility/lib/Controller/AccessibilityController.php index 3ef305511e0..fa82f17e9d4 100644 --- a/apps/accessibility/lib/Controller/AccessibilityController.php +++ b/apps/accessibility/lib/Controller/AccessibilityController.php @@ -218,6 +218,6 @@ class AccessibilityController extends Controller { * @return string */ private function invertSvgIconsColor(string $css) { - return str_replace(['/000', '/fff'], ['/fff', '/000'], $css); + return str_replace(['/000', '/fff', '/***'], ['/***', '/000', '/fff'], $css); } } -- cgit v1.2.3