primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Textarea Floating labels fails on Firefox

Open morula opened this issue 7 years ago • 2 comments

[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/angular-xvdt9a

Current behavior I have got a different behaviour when I use floating label with inputtextarea. In my opinion is the behaviour under Firefox wrong or not expected because the label does not appear on the top when the control has a value.

Expected behavior Same behavior as in Chrome or Microsoft Edge

PrimeNG-Versions

  • Version 6.x
  • Version 7.x

morula avatar Dec 06 '18 12:12 morula

2018-12-06 16_02_20-window

morula avatar Dec 06 '18 15:12 morula

It will work with following changes: ".\primeng\src\app\components\inputtextarea\inputtextarea.css":

.ui-float-label > textarea:focus ~ label, .ui-float-label > textarea.ui-state-filled ~ label, .ui-float-label > .ui-textareawrapper-focus ~ label, .ui-float-label > .ui-textareawrapper-filled ~ label { top:-.75em; font-size:12px; }

morula avatar Mar 13 '19 18:03 morula