Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] TextField 컴포넌트 style, className 속성 가장 바깥 태그에서 관리하도록 수정 #115

Merged
merged 3 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/poor-comics-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wowds-ui": patch
---

TextField 컴포넌트 style, className 속성을 적용할 수 있도록 수정합니다.
1 change: 0 additions & 1 deletion apps/wow-docs/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Box from "wowds-ui/Box";
import Checkbox from "wowds-ui/Checkbox";
import Chip from "wowds-ui/Chip";
import Divider from "wowds-ui/Divider";
Expand Down
3 changes: 1 addition & 2 deletions packages/wow-ui/src/components/TextField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const TextField = forwardRef<HTMLTextAreaElement, TextFieldProps>(
};

return (
<Flex className={containerStyle()} direction="column" gap="xs">
<Flex className={containerStyle()} direction="column" gap="xs" {...rest}>
<Flex alignItems="flex-end" justifyContent="space-between">
<Label textareaId={descriptionId} variant={variant}>
{label}
Expand Down Expand Up @@ -150,7 +150,6 @@ const TextField = forwardRef<HTMLTextAreaElement, TextFieldProps>(
onBlur={handleBlur}
onChange={handleChange}
onFocus={handleFocus}
{...rest}
/>
{helperText && <HelperText variant={variant}>{helperText}</HelperText>}
</Flex>
Expand Down
Loading