Skip to content

Commit

Permalink
Fix #2921: FloatLabel with webkit autofill fix (#2922)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jul 1, 2022
1 parent a8072b6 commit 24dd31c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/lib/inputtext/InputText.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
}

.p-float-label input:focus ~ label,
.p-float-label input:-webkit-autofill ~ label,
.p-float-label input.p-filled ~ label,
.p-float-label textarea:focus ~ label,
.p-float-label textarea.p-filled ~ label,
Expand All @@ -63,11 +64,6 @@
font-size: 12px;
}

.p-float-label input:-webkit-autofill ~ label {
top: -20px;
font-size: 12px;
}

.p-input-icon-left,
.p-input-icon-right {
position: relative;
Expand Down

0 comments on commit 24dd31c

Please sign in to comment.