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;
--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;

Loading…
Cancel
Save