Skip to content

Commit 0df4b14

Browse files
committed
fix: Center label for inputs
1 parent d7f3cf4 commit 0df4b14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/float-label.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@
3232
.float-label {
3333
@apply col-start-1 row-start-1
3434
opacity-50
35+
self-center
3536
/*transition-all duration-200*/;
3637
}
3738

38-
&:has(textarea.float-input) .float-label {
39+
textarea.float-input .float-label {
3940
@apply self-start;
4041
}
4142
}

0 commit comments

Comments
 (0)