Joe
Joe

Reputation: 29

Material design css fails if input type is email

I have found a few code pens that have material design examples for forms. I found a few that have the same issue.

If input type is set to "text" or "password" they work fine, but they fail if set to "email". Is there a way to fix this? I have tried making the css rules specifically target input[type=email]

https://codepen.io/anon/pen/bBgeqR

http://codepen.io/binarytrance/pen/WGKmKP?editors=1100

Upvotes: 2

Views: 355

Answers (1)

P.S.
P.S.

Reputation: 16384

It looks like the material design doesn't support HTML5 inputs like email.

https://github.com/google/material-design-lite/issues/853

From the answer: "For now, text fields are exactly that: text fields."

Upvotes: 2

Related Questions