Skip to content

Commit

Permalink
Remove old textarea component and update error border color
Browse files Browse the repository at this point in the history
  • Loading branch information
Anboias committed Nov 28, 2024
1 parent 6f666fb commit ef8745c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 40 deletions.
4 changes: 4 additions & 0 deletions src/components/input/textarea-input.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
&:focus-within {
border: 1px solid $color-dark-blue-25;
}

&.error {
border: 1px solid $color-action-error-300;
}
}

.input {
Expand Down
2 changes: 1 addition & 1 deletion src/components/input/textarea-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const InputWrapper = (props: InputWrapperProps) => {

return (
<div className={styles.inputWrapper}>
<div className={styles.container}>
<div className={classNames(styles.container, { [styles.error]: error })}>
{children}

<button className={styles.clearButton} disabled={!value} onClick={clearInput}>
Expand Down
1 change: 0 additions & 1 deletion src/components/textarea/index.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/components/textarea/textarea.module.scss

This file was deleted.

15 changes: 0 additions & 15 deletions src/components/textarea/textarea.tsx

This file was deleted.

0 comments on commit ef8745c

Please sign in to comment.