Skip to content

Commit 54a6e7c

Browse files
committed
fix: error message overlap
1 parent 38a12a1 commit 54a6e7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/composites/FormControl/FormControlErrorMessage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useFormControlContext } from './useFormControl';
66
import type { IFormControlErrorMessageProps } from './types';
77
import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
88
import { combineContextAndProps } from '../../../utils';
9+
import Text from '../../primitives/Text';
910

1011
const FormControlErrorMessage = (
1112
props: IFormControlErrorMessageProps,
@@ -73,7 +74,7 @@ const FormControlErrorMessage = (
7374
<Box nativeID={resolvedProps?.helpTextId} {...resolvedProps} ref={ref}>
7475
<HStack {..._stack}>
7576
{startIcon}
76-
<Box _text={_text}>{children}</Box>
77+
<Text {..._text}>{children}</Text>
7778
{endIcon}
7879
</HStack>
7980
</Box>

0 commit comments

Comments
 (0)