components icon indicating copy to clipboard operation
components copied to clipboard

mdInput required indicator, is there any way to replace the default?

Open uredkar opened this issue 9 years ago • 3 comments

Bug, feature request, or proposal:

The required red indicators look really thick and ugly

What is the expected behavior?

What is the current behavior?

image

What are the steps to reproduce?

Error messages

Regular

This field is required This field is required Please enter a valid email address

With hint

This field is required Please type something here
    <form novalidate>
        <h4>Inside a form</h4>
        <md-input-container>
            <input mdInput name="example" placeholder="example"
                   [(ngModel)]="errorMessageExample3" required>
            <md-error>This field is required</md-error>
        </md-input-container>
        <button color="primary" md-raised-button>Submit</button>
    </form>
</md-card-content>
Providing a Plunker (or similar) is the *best* way to get the team to see your issue. Plunker template: https://goo.gl/DlHd6U

What is the use-case or motivation for changing an existing behavior?

The indicator should be a simple bar and should be configurable

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

Angular 4.0

Is there anything else we should know?

I am using the latest git version of the this library

uredkar avatar May 11 '17 01:05 uredkar

Can you please provide a Plunker to try to reproduce the issue. What browsers are affected? Please update your issue with both things.

donroyco avatar May 11 '17 06:05 donroyco

It is does not appear to be an issue with material, but was caused by the following css in my project.

.ng-invalid:not(form) {
  border-left: 2px solid #a94442;
}

https://plnkr.co/edit/DUjWb2ej2427sG74A9J3?p=preview

uredkar avatar May 11 '17 14:05 uredkar

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.