Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Cannot use md-warn, md-primary, md-accent with md-input-container #1137

Closed
hodeyp opened this issue Jan 8, 2015 · 2 comments
Closed

Cannot use md-warn, md-primary, md-accent with md-input-container #1137

hodeyp opened this issue Jan 8, 2015 · 2 comments

Comments

@hodeyp
Copy link

hodeyp commented Jan 8, 2015

I want to be able to use md-warn,md-accent in the new md-input-container to reflect validity.

I would expect to be able to set ng-class="{'md-warn':!frm.input.$valid}" type of thing but this is not having any effect. If I apply a md-warn directly to any element within the md-input-container it doesn't seem to do anything?

@ajoslin ajoslin closed this as completed in 6acacc5 Jan 8, 2015
@ajoslin
Copy link
Contributor

ajoslin commented Jan 8, 2015

Fixed, thanks for the issue.

@hodeyp
Copy link
Author

hodeyp commented Jan 8, 2015

Hi - thanks for the fix. My only observation would be that md-warn colour is only applied when the control has focus. As such it is not immediately obvious which inputs are in error unless the control happens to have focus. Would be good to be able to have the md-warn color applied when it doesn't have focus instead of reverting to the grey colour scheme.

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