add z-index to label

master
Bruno O. Notario 5 years ago committed by GitHub
parent f40d06a21c
commit 74cbde2905
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      floating-labels.css

@ -3,6 +3,7 @@
--input-padding-y: .7rem; --input-padding-y: .7rem;
--placeholder-color: #6c757d; --placeholder-color: #6c757d;
--top-position: 4px; --top-position: 4px;
--label-z-index: 5;
} }
.form-label-group { .form-label-group {
position: relative; position: relative;
@ -32,6 +33,7 @@
transform: translateY(-50%); transform: translateY(-50%);
text-align: left; text-align: left;
visibility: hidden; visibility: hidden;
z-index: var(--label-z-index);
} }
.form-label-group textarea ~ label { .form-label-group textarea ~ label {
top: 0px; top: 0px;

Loading…
Cancel
Save