Skip to content

Commit de91a88

Browse files
authored
fix: float label if both placeholder and label is used for Input (#56)
1 parent f0bee99 commit de91a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/once-ui/components/Input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
178178
variant="label-default-m"
179179
htmlFor={id}
180180
className={classNames(styles.label, styles.inputLabel, {
181-
[styles.floating]: isFocused || isFilled,
181+
[styles.floating]: isFocused || isFilled || placeholder,
182182
})}
183183
>
184184
{label}

0 commit comments

Comments
 (0)