float-label-css icon indicating copy to clipboard operation
float-label-css copied to clipboard

Input placeholder in Firefox is visible

Open bigchimp opened this issue 7 years ago • 7 comments

The input placeholder is visible in Firefox untitled when not in focus

bigchimp avatar Aug 19 '17 01:08 bigchimp

This issue is still occurring. Any updates?

staticpo avatar Feb 20 '18 13:02 staticpo

try adding class .has-float-label .form-control:placeholder-shown:not(:focus)::-moz-placeholder {opacity:0;}

subhan-git avatar Jun 11 '18 09:06 subhan-git

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.

jorgevazquezmeli avatar Jun 29 '18 19:06 jorgevazquezmeli

Should be resolved as outdated I believe, I cannot reproduce in current Firefox.

marsjaninzmarsa avatar Nov 26 '18 08:11 marsjaninzmarsa

Still happens with both the Bootstrap 3 and Bootstrap 4 demo for me. The no-dependencies demo works fine. firefox_2018-11-26_11-28-04

liquidsunshine avatar Nov 26 '18 16:11 liquidsunshine

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)

marsjaninzmarsa avatar Nov 26 '18 17:11 marsjaninzmarsa

Works also with additional

.form-control:not(:focus)::placeholder {
  opacity: 0;
}

uschmidt avatar Mar 22 '19 09:03 uschmidt