aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/tests
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-01-17 15:26:56 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2024-01-17 15:30:39 +0100
commit18b91ba2e13ad3a631200775fabcfc1ef1a302b6 (patch)
tree88a5234116bb5f5ebe931639f54d7e1b3b8cd2d9 /apps/theming/tests
parent5de3028f667afb807d1c682238340208e56d6b91 (diff)
downloadnextcloud-server-18b91ba2e13ad3a631200775fabcfc1ef1a302b6.tar.gz
nextcloud-server-18b91ba2e13ad3a631200775fabcfc1ef1a302b6.zip
fix(theming): Make sure `color-border-maxcontrast` fulfills 3:1 contrast
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/theming/tests')
-rw-r--r--apps/theming/tests/Themes/AccessibleThemeTestCase.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/theming/tests/Themes/AccessibleThemeTestCase.php b/apps/theming/tests/Themes/AccessibleThemeTestCase.php
index 84121dd41b0..f5bbcf44c64 100644
--- a/apps/theming/tests/Themes/AccessibleThemeTestCase.php
+++ b/apps/theming/tests/Themes/AccessibleThemeTestCase.php
@@ -74,6 +74,18 @@ class AccessibleThemeTestCase extends TestCase {
],
$elementContrast,
],
+ 'border-colors' => [
+ [
+ '--color-border-maxcontrast',
+ ],
+ [
+ '--color-main-background',
+ '--color-background-hover',
+ '--color-background-dark',
+ '--color-main-background-blur',
+ ],
+ $elementContrast,
+ ],
// Those two colors are used for borders which will be `color-main-text` on focussed state, thus need 3:1 contrast to it
'success-error-border-colors' => [
[