diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-10-25 13:57:28 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-10-27 12:56:23 +0200 |
commit | 3676295f7b13852ec328e32f510aefd4c7b709c7 (patch) | |
tree | 77236e44d27adfac9bb54c5bdae7210fbf333c88 /apps/theming/tests/Themes/DefaultThemeTest.php | |
parent | be129a7d1f256a9a6aeaadbd9355c088fe0df929 (diff) | |
download | nextcloud-server-3676295f7b13852ec328e32f510aefd4c7b709c7.tar.gz nextcloud-server-3676295f7b13852ec328e32f510aefd4c7b709c7.zip |
fix(theming): Ensure all text colors have enough contrast for accessibility
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/theming/tests/Themes/DefaultThemeTest.php')
-rw-r--r-- | apps/theming/tests/Themes/DefaultThemeTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/theming/tests/Themes/DefaultThemeTest.php b/apps/theming/tests/Themes/DefaultThemeTest.php index 6044f5c10d3..0d86a8d6b28 100644 --- a/apps/theming/tests/Themes/DefaultThemeTest.php +++ b/apps/theming/tests/Themes/DefaultThemeTest.php @@ -157,6 +157,8 @@ class DefaultThemeTest extends TestCase { $css = ":root {" . PHP_EOL . "$variables}" . PHP_EOL; $fallbackCss = file_get_contents(__DIR__ . '/../../css/default.css'); + // Remove comments + $fallbackCss = preg_replace('/\s*\/\*[\s\S]*?\*\//m', '', $fallbackCss); $this->assertEquals($css, $fallbackCss); } |