aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/tests/Themes/DefaultThemeTest.php
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-10-25 13:57:28 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2023-10-27 12:56:23 +0200
commit3676295f7b13852ec328e32f510aefd4c7b709c7 (patch)
tree77236e44d27adfac9bb54c5bdae7210fbf333c88 /apps/theming/tests/Themes/DefaultThemeTest.php
parentbe129a7d1f256a9a6aeaadbd9355c088fe0df929 (diff)
downloadnextcloud-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.php2
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);
}