jatinder bhola jatinder bhola - 4 months ago 49
CSS Question

How can I modify the md-input-container in angularJS

I am working on designing a form with angularJS. I am facing this issue from a long time. Whenever I use a text field (md-input-container) and drop down (md-select), this causes a height difference.

When I inspect the code, I find out that the md-input-container has an extra md-error div tag.

Please check this pic

I want to get rid of this div tag

<div class="md-errors-spacer"></div>
. Any suggestion?

Thank you

Answer

You could do something like .hide-validation-error .md-errors-spacer { display: none; }, and then you would just need to add the class hide-validation-error to any of the <md-input-container>'s that you know won't need validation.

Comments