float-label-css
float-label-css copied to clipboard
Input placeholder in Firefox is visible
The input placeholder is visible in Firefox
when not in focus
This issue is still occurring. Any updates?
try adding class .has-float-label .form-control:placeholder-shown:not(:focus)::-moz-placeholder {opacity:0;}
Well, acording to https://developer.mozilla.org/en-US/docs/Web/CSS/::-moz-placeholder The -moz-placeholder is in the process of being removed and Firefox 51 and up support the actual placeholder style.
Should be resolved as outdated I believe, I cannot reproduce in current Firefox.
Still happens with both the Bootstrap 3 and Bootstrap 4 demo for me. The no-dependencies demo works fine.
Funny:
.form-control::-moz-placeholder {
color: #999;
opacity: 1;
}
.form-control:-ms-input-placeholder {
color: #999;
}
.form-control::-webkit-input-placeholder {
color: #999;
}
(bootstrap.css:2560)
Works also with additional
.form-control:not(:focus)::placeholder {
opacity: 0;
}