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

MdInput Form Validation Color #4081

Closed
LilSebastian5000 opened this issue Apr 13, 2017 · 3 comments
Closed

MdInput Form Validation Color #4081

LilSebastian5000 opened this issue Apr 13, 2017 · 3 comments

Comments

@LilSebastian5000
Copy link

LilSebastian5000 commented Apr 13, 2017

Bug, feature request, or proposal:

This may be a feature request, rather than a bug. But, I think an <md-input-container> should underline an empty, required field in red on initialization.

What is the expected behavior?

An empty, required form input should be underlined in red, regardless of whether or not a user attempts to type in the field.

What is the current behavior?

When using an <md-input-container>, an empty required field does not underline in red, unless the user focuses into the field, and then unfocuses.

What are the steps to reproduce?

  1. Click into the input
  2. Click out of the input

Plunker: https://plnkr.co/edit/W3VGplOBmDL6Tb39UObR?p=preview

Which versions of Angular, Material, OS, browsers are affected?

@angular/material: 2.0.0-beta.3
angular version 4.0.2
Chrome (desktop)

@willshowell
Copy link
Contributor

See this answer to a similar issue

@LilSebastian5000
Copy link
Author

@willshowell Ohh gotcha. Thanks for letting me know! A bit of a bummer that isn't a part of the material design spec, but I suppose I can perform some custom validation css.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants