From 1cf8d443411298676c9e424a22f835f4fe5202bc Mon Sep 17 00:00:00 2001 From: szalonna Date: Sun, 24 Nov 2024 17:44:51 +0100 Subject: [PATCH] fix(ui-form-field): remove hardcoded colors and use theme provided ones The form field message component used hardcoded colors for the different message types, independently from the theme currently used. Now it will use the theme-provided colors. --- packages/ui-form-field/src/FormFieldMessage/theme.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui-form-field/src/FormFieldMessage/theme.ts b/packages/ui-form-field/src/FormFieldMessage/theme.ts index 6f5817d107..d2d3ef7abe 100644 --- a/packages/ui-form-field/src/FormFieldMessage/theme.ts +++ b/packages/ui-form-field/src/FormFieldMessage/theme.ts @@ -40,9 +40,9 @@ const generateComponentTheme = (theme: Theme): FormFieldMessageTheme => { } const componentVariables: FormFieldMessageTheme = { - colorHint: colors?.contrasts?.grey125125, - colorError: colors?.contrasts?.red4570, - colorSuccess: colors?.contrasts?.green4570, + colorHint: colors?.ui?.textBody, + colorError: colors?.ui?.textError, + colorSuccess: colors?.ui?.textSuccess, fontFamily: typography?.fontFamily, fontWeight: typography?.fontWeightNormal,