-
+ return isFullWidth ? (
+
+ {textarea}
+ ) : (
+ textarea
);
},
);
diff --git a/src/components/TextInput/text-input.tsx b/src/components/TextInput/text-input.tsx
index a17a8fedc5..90686c79d7 100644
--- a/src/components/TextInput/text-input.tsx
+++ b/src/components/TextInput/text-input.tsx
@@ -5,6 +5,7 @@ import {
type ComponentPropsWithoutRef,
type ReactNode,
} from 'react';
+import './cfpb-text-input.scss';
import type { TextInputStatusType } from './text-input-status';
import { getTextInputStatusClass } from './text-input-status';
@@ -65,23 +66,9 @@ export const TextInput = forwardRef
(
if (isFullWidth) {
classes.push('a-text-input--full');
- return (
-
-
-
- );
}
- return (
+ const input = (
(
{...otherInputProperties}
/>
);
+
+ return isFullWidth ? (
+ {input}
+ ) : (
+ input
+ );
},
);