Skip to content

Commit

Permalink
Fixes InputText component "float" label styles for webkit based auto-…
Browse files Browse the repository at this point in the history
…fill. (#4534)

Applies same fix for the same issue implemented to "primeng" in 2018:
primefaces/primeng@d2abf21
  • Loading branch information
RickKukiela authored Oct 5, 2023
1 parent d036a91 commit 32d473e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/lib/basecomponent/style/BaseComponentStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ const inputTextCSS = `
.p-float-label input:focus ~ label,
.p-float-label input.p-filled ~ label,
.p-float-label input:-webkit-autofill ~ label,
.p-float-label textarea:focus ~ label,
.p-float-label textarea.p-filled ~ label,
.p-float-label .p-inputwrapper-focus ~ label,
Expand All @@ -153,10 +154,6 @@ const inputTextCSS = `
font-size: 12px;
}
.p-float-label .input:-webkit-autofill ~ label {
top: -20px;
font-size: 12px;
}
.p-float-label .p-placeholder,
.p-float-label input::placeholder,
Expand Down

0 comments on commit 32d473e

Please sign in to comment.