You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/theming/tests/Themes/AccessibleThemeTestCase.php
+36-1Lines changed: 36 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,26 @@ public function dataAccessibilityPairs() {
46
46
],
47
47
3.0,
48
48
],
49
+
'status color elements on background' => [
50
+
[
51
+
'--color-error',
52
+
'--color-error-hover',
53
+
'--color-warning',
54
+
'--color-warning-hover',
55
+
'--color-info',
56
+
'--color-info-hover',
57
+
'--color-success',
58
+
'--color-success-hover',
59
+
],
60
+
[
61
+
'--color-main-background',
62
+
'--color-background-hover',
63
+
'--color-background-dark',
64
+
'--color-background-darker',
65
+
'--color-main-background-blur',
66
+
],
67
+
3.0,
68
+
],
49
69
'primary-element-text' => [
50
70
[
51
71
'--color-primary-element-text',
@@ -92,6 +112,21 @@ public function dataAccessibilityPairs() {
92
112
],
93
113
4.5,
94
114
],
115
+
'status-text' => [
116
+
[
117
+
'--color-error-text',
118
+
'--color-warning-text',
119
+
'--color-success-text',
120
+
'--color-info-text',
121
+
],
122
+
[
123
+
'--color-main-background',
124
+
'--color-background-hover',
125
+
'--color-background-dark',
126
+
'--color-main-background-blur',
127
+
],
128
+
4.5,
129
+
],
95
130
];
96
131
}
97
132
@@ -108,7 +143,7 @@ public function testAccessibilityOfVariables($mainColors, $backgroundColors, $mi
108
143
$variables = $this->theme->getCSSVariables();
109
144
110
145
// Blur effect does not work so we mockup the color - worst supported case is the default "clouds" background image (on dark themes the clouds with white color are bad on bright themes the primary color as sky is bad)
0 commit comments