Skip to content

Commit

Permalink
[Bug] TextField 컴포넌트 style, className 속성 가장 바깥 태그에서 관리하도록 수정 (#115)
Browse files Browse the repository at this point in the history
* chore: 불필요한 import문 삭제

* chore: TextField 컴포넌트 style, className props 가장 바깥 태그에 적용하도록 수정

* feat: changeset 작성
  • Loading branch information
ghdtjgus76 authored Aug 2, 2024
1 parent 5af6297 commit 20d52e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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

0 comments on commit 20d52e5

Please sign in to comment.