From 627396f031979fb6232ae3cbaaa369ca3a590f74 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Fri, 3 Jul 2020 11:45:38 +0300 Subject: [PATCH] Float label support for textarea --- src/components/inputtext/InputText.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/inputtext/InputText.css b/src/components/inputtext/InputText.css index 6984d345c..010c8e2be 100755 --- a/src/components/inputtext/InputText.css +++ b/src/components/inputtext/InputText.css @@ -46,9 +46,15 @@ transition-timing-function: ease; line-height: 1; } + +.p-float-label textarea ~ label { + top: 1rem; +} .p-float-label input:focus ~ label, .p-float-label input.p-filled ~ label, +.p-float-label textarea:focus ~ label, +.p-float-label textarea.p-filled ~ label, .p-float-label .p-inputwrapper-focus ~ label, .p-float-label .p-inputwrapper-filled ~ label { top: -.75rem;