fix(theming): add missing `color-text-success` variable

This was planned to be added and already documented.
The use case is some rare occurences where we use success like text.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/54624/head
Ferdinand Thiessen 2025-08-25 14:48:06 +07:00
parent 1091e59b90
commit 55f968aa4b
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
6 changed files with 6 additions and 6 deletions

@ -19,6 +19,7 @@
--color-text-maxcontrast-default: #6b6b6b;
--color-text-maxcontrast-background-blur: #595959;
--color-text-error: #c90000;
--color-text-success: #066e03;
/** @deprecated use ` --color-main-text` instead */
--color-text-light: var(--color-main-text);
/** @deprecated use `--color-text-maxcontrast` instead */

@ -67,8 +67,7 @@ class DarkHighContrastTheme extends DarkTheme implements ITheme {
'--color-text-maxcontrast' => $colorMainText,
'--color-text-maxcontrast-background-blur' => $colorMainText,
'--color-text-error' => $this->util->lighten($colorError, 65),
'--color-text-light' => $colorMainText,
'--color-text-lighter' => $colorMainText,
'--color-text-success' => $this->util->lighten($colorSuccess, 65),
'--color-error' => $colorError,
'--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)),

@ -83,8 +83,7 @@ class DarkTheme extends DefaultTheme implements ITheme {
'--color-text-maxcontrast-default' => $colorTextMaxcontrast,
'--color-text-maxcontrast-background-blur' => $this->util->lighten($colorTextMaxcontrast, 6),
'--color-text-error' => $colorErrorElement,
'--color-text-light' => 'var(--color-main-text)', // deprecated
'--color-text-lighter' => 'var(--color-text-maxcontrast)', // deprecated
'--color-text-success' => $this->util->lighten($colorSuccessElement, 10),
'--color-error' => $colorError,
'--color-error-hover' => $this->util->lighten($colorError, 10),

@ -129,6 +129,7 @@ class DefaultTheme implements ITheme {
'--color-text-maxcontrast-default' => $colorTextMaxcontrast,
'--color-text-maxcontrast-background-blur' => $this->util->darken($colorTextMaxcontrast, 7),
'--color-text-error' => $colorErrorElement,
'--color-text-success' => $this->util->darken($colorSuccessElement, 10),
'--color-text-light' => 'var(--color-main-text)', // deprecated
'--color-text-lighter' => 'var(--color-text-maxcontrast)', // deprecated

@ -70,8 +70,7 @@ class HighContrastTheme extends DefaultTheme implements ITheme {
'--color-text-maxcontrast' => $colorMainText,
'--color-text-maxcontrast-background-blur' => $colorMainText,
'--color-text-error' => $this->util->darken($colorError, 65),
'--color-text-light' => $colorMainText,
'--color-text-lighter' => $colorMainText,
'--color-text-success' => $this->util->darken($colorSuccess, 70),
'--color-error' => $colorError,
'--color-error-rgb' => join(',', $this->util->hexToRGB($colorError)),

@ -150,6 +150,7 @@ class AccessibleThemeTestCase extends TestCase {
'error-text-on-background' => [
[
'--color-text-error',
'--color-text-success',
],
[
'--color-main-background',