diff --git a/src/Input/Input.module.styl b/src/Input/Input.module.styl index 6dfa0d8..dedcc49 100644 --- a/src/Input/Input.module.styl +++ b/src/Input/Input.module.styl @@ -22,7 +22,7 @@ svg position absolute user-select none - padding 8px + padding 16px color black @media (prefers-color-scheme dark) color white @@ -31,15 +31,15 @@ &.iconClickable pointer-events all cursor pointer - top 14px + top -2px &.left - left 16px // input padding-left + left 0px // input padding-left ~ label - left 16px + 24px + 10px + left 0px + 24px + 10px &.right - right 16px + right 0 select appearance none diff --git a/src/Input/index.tsx b/src/Input/index.tsx index 880a388..455eb55 100644 --- a/src/Input/index.tsx +++ b/src/Input/index.tsx @@ -350,8 +350,8 @@ export default class Input extends React.Component { } if ('icon' in Icon) { - // 18 + 8 of padding - return { + // 18 + 16 of padding + return { if (this.props.disabled) {return} const value = Icon.transformer(this.state.value ?? this.state.displayedValue ?? '') this.setState({ value: value, displayedValue: value, valueUpdate: true })