Skip to content

Commit

Permalink
Updated with new changes to ErrorMesssage
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz committed Sep 21, 2023
1 parent 8977480 commit 3d36ea7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/react/src/components/form/CharacterCounter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
</ErrorMessage>
Expand Down

0 comments on commit 3d36ea7

Please sign in to comment.