Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Firefox placeholder hidden for inputs without label #2162

Closed
scisci opened this issue Apr 4, 2015 · 2 comments
Closed

Firefox placeholder hidden for inputs without label #2162

scisci opened this issue Apr 4, 2015 · 2 comments
Assignees
Labels
for: internal contributor The team will address this issue and community PRs are not requested.
Milestone

Comments

@scisci
Copy link

scisci commented Apr 4, 2015

Placeholder for inputs without a label is hidden. The offending css is this:

md-input-container:not(.md-input-has-value) input:not(:focus) {
color: transparent;
}

Apparently Firefox honors the transparent color (which should be illegal). So if the input is not focused the color becomes transparent. I was able to get around it by adding this css:

md-input-container:not(.md-input-has-value) input:not(:focus) {
color: inherit;
}

@ThomasBurleson ThomasBurleson self-assigned this Apr 24, 2015
@ThomasBurleson ThomasBurleson added the for: internal contributor The team will address this issue and community PRs are not requested. label Apr 24, 2015
@ThomasBurleson ThomasBurleson modified the milestone: 0.10.0 May 13, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 0.10.0, 0.11.0 Jun 16, 2015
@Splaktar
Copy link
Member

Splaktar commented Jul 1, 2015

Changing input.scss (114-116):

&:not( .md-input-has-value ) input:not( :focus ) {
  color: transparent;
}

to:

&:not( .md-input-has-value ) input:not( :focus ) {
  color: inherit;
}

Somewhat fixes this, but the colors/alpha of the placeholders aren't consistent in the demo. Firebug says that they are, but visually the difference is obvious.

Splaktar added a commit that referenced this issue Jul 1, 2015
Change unfocused placeholder color to inherit instead of transparent.

Closes #2162 and #2480
@Splaktar
Copy link
Member

Splaktar commented Jul 4, 2015

It looks like the color/alpha differences that I saw were caused by differences in the styling between using floating labels and placeholder.

Splaktar added a commit that referenced this issue Jul 4, 2015
Change to only hide automatic placeholders on webkit.
This fixes Firefox so that placeholders are visible again.

Fixes #2162.  Fixes #2480.
Splaktar added a commit that referenced this issue Jul 4, 2015
Change to only hide automatic placeholders on webkit.
This fixes Firefox so that placeholders are visible again.

Fixes #2162.  Fixes #2480.
Splaktar added a commit that referenced this issue Jul 4, 2015
Change to only hide automatic placeholders on webkit.
This fixes Firefox so that placeholders are visible again.

Fixes #2162.  Fixes #2480.
Splaktar added a commit that referenced this issue Jul 4, 2015
Change to only hide automatic placeholders on webkit.
This fixes Firefox so that placeholders are visible again.

Fixes #2162.  Fixes #2480.
Splaktar added a commit that referenced this issue Jul 5, 2015
Change to only hide automatic placeholders on webkit.
This fixes Firefox so that placeholders are visible again.

Fixes #2162.  Fixes #2480.
@Splaktar Splaktar assigned Splaktar and unassigned ThomasBurleson Jul 7, 2015
@Splaktar Splaktar modified the milestones: 0.10.1, 0.11.0 Jul 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
for: internal contributor The team will address this issue and community PRs are not requested.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants