Skip to content

Commit

Permalink
fix(ui-form-field): remove hardcoded colors and use theme provided ones
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
szalonna committed Nov 24, 2024
1 parent e6e5a7b commit 1cf8d44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ui-form-field/src/FormFieldMessage/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1cf8d44

Please sign in to comment.