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

Firefox placeholder opacity bug #7589

Closed
vinizinmoraes opened this issue Apr 16, 2013 · 4 comments
Closed

Firefox placeholder opacity bug #7589

vinizinmoraes opened this issue Apr 16, 2013 · 4 comments

Comments

@vinizinmoraes
Copy link

The color is ok, but on Firefox they change the opacity of the field too, so on the placeholder pseudoclass should be added "opacity: 1;".

You can see the bug on http://twitter.github.io/bootstrap/base-css.html#forms

@mdo
Copy link
Member

mdo commented Apr 16, 2013

I see no opacity change on forms in the latest Firefox.

@mdo mdo closed this as completed Apr 16, 2013
@vinizinmoraes
Copy link
Author

I dont know how you didnt saw, but there is two prints one with placeholder the other one with text, its a firefox only issue, on Windows and Mac.

placeholder-problem

placeholder-problem-2

As you can see the color is different because opacity change.

@mdo
Copy link
Member

mdo commented Apr 16, 2013

Mentioned to you on Twitter, but it's not an opacity change. That's intentional styling on the text color for different pseudo states.

@vinizinmoraes
Copy link
Author

Its a default browser behavior Firefox change their opacity to placeholder texts if you need the placeholder color be exactly the same in all browser you should use "opacity:1" just a example for someone that across with the same problem:

input:-moz-placeholder { /* Firefox 18- */
   color: red;  
   opacity: 1;
}

input::-moz-placeholder {  /* Firefox 19+ */
   color: red;
   opacity: 1;
} 

ggreer added a commit to ggreer/odyssey that referenced this issue May 15, 2019
ggreer added a commit to ggreer/odyssey that referenced this issue May 15, 2019
ggreer added a commit to ggreer/odyssey that referenced this issue May 20, 2019
ggreer added a commit to ggreer/odyssey that referenced this issue Sep 30, 2019
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

2 participants