From 3d36ea7c3fc85f264006629ea52de9759ee18e49 Mon Sep 17 00:00:00 2001 From: Michael Marszalek Date: Wed, 20 Sep 2023 14:35:26 +0200 Subject: [PATCH] Updated with new changes to `ErrorMesssage` --- packages/react/src/components/form/CharacterCounter.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/react/src/components/form/CharacterCounter.tsx b/packages/react/src/components/form/CharacterCounter.tsx index 2a946994e2..c123211dfc 100644 --- a/packages/react/src/components/form/CharacterCounter.tsx +++ b/packages/react/src/components/form/CharacterCounter.tsx @@ -53,11 +53,7 @@ export const CharacterCounter = ({ as='span' size={size} aria-live={hasExceededLimit ? 'polite' : 'off'} - style={{ - color: hasExceededLimit - ? 'var(--fds-semantic-text-danger-default)' - : 'var(--fds-semantic-text-neutral-default)', - }} + error={hasExceededLimit} > {label(currentCount)}