Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input placeholder in Firefox is visible #20

Open
bigchimp opened this issue Aug 19, 2017 · 7 comments
Open

Input placeholder in Firefox is visible #20

bigchimp opened this issue Aug 19, 2017 · 7 comments

Comments

@bigchimp
Copy link

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

@staticpo
Copy link

This issue is still occurring. Any updates?

@subhan-git
Copy link

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

@jorgevazquezmeli
Copy link

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.

@marsjaninzmarsa
Copy link

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

@liquidsunshine
Copy link

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

@marsjaninzmarsa
Copy link

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)

@uschmidt
Copy link

Works also with additional

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants