From 74cbde290560a9edf55ab9bd1c8f3b9f86240671 Mon Sep 17 00:00:00 2001 From: oliveira131 <47257731+oliveira131@users.noreply.github.com> Date: Mon, 2 Sep 2019 02:19:23 -0300 Subject: [PATCH] add z-index to label --- floating-labels.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/floating-labels.css b/floating-labels.css index e1b7d13..5d6ef76 100644 --- a/floating-labels.css +++ b/floating-labels.css @@ -3,6 +3,7 @@ --input-padding-y: .7rem; --placeholder-color: #6c757d; --top-position: 4px; + --label-z-index: 5; } .form-label-group { position: relative; @@ -32,6 +33,7 @@ transform: translateY(-50%); text-align: left; visibility: hidden; + z-index: var(--label-z-index); } .form-label-group textarea ~ label { top: 0px;