Skip to content

Commit

Permalink
hotfix: add inputProps style
Browse files Browse the repository at this point in the history
  • Loading branch information
sohee-K committed Apr 17, 2024
1 parent 067f0e9 commit 5c60bd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-crabs-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sopt-makers/ui": patch
---

add inputProps style
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@sopt-makers/colors": "^3.0.0",
"@sopt-makers/fonts": "^2.0.0",
"@sopt-makers/icons": "^1.0.0",
"@sopt-makers/ui": "^1.1.1"
"@sopt-makers/ui": "^1.1.3"
},
"devDependencies": {
"@storybook/addon-essentials": "^7.6.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/Input/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function TextArea(props: TextAreaProps) {
return <div className={className} style={{ position: 'relative' }}>
{labelText ? <label className={S.label}><span>{labelText}{required}</span>{description}{input}</label> : <div className={S.inputWrap}>{description}{input}</div>}

<button className={S.submitButton} disabled={disabled} onClick={onSubmit} style={{ transform: `translateY(-${buttonPosition}px)` }} type="submit"><SendIcon disabled={disabled} /></button>
<button className={S.submitButton} disabled={disabled} onClick={onSubmit} style={{ ...inputProps.style, transform: `translateY(-${buttonPosition}px)` }} type="submit"><SendIcon disabled={disabled} /></button>

<div className={S.inputBottom}>
{hasError() ? <div className={S.errorMessage}><AlertCircleIcon /><p>{errorMessage ?? 'error'}</p></div> : <div> </div>}
Expand Down

0 comments on commit 5c60bd1

Please sign in to comment.