diff options
-rw-r--r-- | apps/accessibility/lib/Controller/AccessibilityController.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/accessibility/lib/Controller/AccessibilityController.php b/apps/accessibility/lib/Controller/AccessibilityController.php index 91c110de868..e17b206cdfd 100644 --- a/apps/accessibility/lib/Controller/AccessibilityController.php +++ b/apps/accessibility/lib/Controller/AccessibilityController.php @@ -260,7 +260,15 @@ class AccessibilityController extends Controller { * @return string */ private function invertSvgIconsColor(string $css) { - return str_replace(['color=000', 'color=fff', 'color=***'], ['color=***', 'color=000', 'color=fff'], $css); + return str_replace( + ['color=000&', 'color=fff&', 'color=***&'], + ['color=***&', 'color=000&', 'color=fff&'], + str_replace( + ['color=000000&', 'color=ffffff&', 'color=******&'], + ['color=******&', 'color=000000&', 'color=ffffff&'], + $css + ) + ); } /** |