From d2abf21fb9c63862f28b67ce581274464c01986d Mon Sep 17 00:00:00 2001 From: zhongdeliu Date: Tue, 3 Apr 2018 08:03:56 +0200 Subject: [PATCH] Fix style of floating label and (Chromes) autofill Selector was using .input, which imho doesn't make any sense here. When (chromes) autofill feature happened, the label should have the same style as when the input if filled. --- src/app/components/inputtext/inputtext.css | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/components/inputtext/inputtext.css b/src/app/components/inputtext/inputtext.css index 488b5fa42a6..c17a47137bc 100644 --- a/src/app/components/inputtext/inputtext.css +++ b/src/app/components/inputtext/inputtext.css @@ -95,14 +95,10 @@ } .ui-float-label > input:focus ~ label, +.ui-float-label > input:-webkit-autofill ~ label, .ui-float-label > input.ui-state-filled ~ label, .ui-float-label > .ui-inputwrapper-focus ~ label, .ui-float-label > .ui-inputwrapper-filled ~ label { top:-.75em; font-size:12px; } - -.ui-float-label > .input:-webkit-autofill ~ label { - top:-20px; - font-size:12px; -} \ No newline at end of file