Skip to content

Commit

Permalink
refactor: input에 color classname 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
grapefruit13 committed Apr 26, 2024
1 parent 0468dfd commit 8873631
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lib/components/InputField/InputField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,13 @@ const InputField = ({
</label>
<div className={cx('input-field-input-group')}>
{isDisabled ? (
<input
id={`input-field-${name}`}
className={cx('input-field-input-group-input', color)}
disabled
{...props}
/>
<input id={`input-field-${name}`} className={cx('input-field-input-group-input')} disabled {...props} />
) : (
<input
id={`input-field-${name}`}
className={cx(
'input-field-input-group-input',
color,
{ error: isError },
{ 'is-password': isPassword },
{ 'is-limited': isLimited && !isPassword },
Expand Down

0 comments on commit 8873631

Please sign in to comment.