Floating label with placeholder
I'm submitting a ...
[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
Plunkr Case (Bug Reports) https://stackblitz.com/edit/github-hfaqbo?file=src%2Fapp%2Fapp.component.ts
Current behavior PrimeNG Input with floating label and placeholder cause overlapping text
Expected behavior The placeholder should only show up as soon as the Input field got focus and the floating label moved upside the input field.
I accomplished this behaviour with a workaround by adjusting the CSS as you can see here: https://stackblitz.com/edit/github-hfaqbo-iv54jr?file=src%2Fapp%2Fapp.component.css,src%2Fstyles.scss,src%2Fapp%2Fapp.component.ts
What is the motivation / use case for changing the behavior? It's a common practice to use floating labels in combination with placeholders.
- Angular version: 13.3.4
- PrimeNG version: 13.3.3
-
Browser: Tested on Chrome/Edge/Firefox
-
Language: TypeScript 4.6.4
-
Node (for AoT issues):
node --version= 16.4.2