components icon indicating copy to clipboard operation
components copied to clipboard

How to change the color of my mdInput?

Open lukecorf opened this issue 9 years ago • 9 comments

Well... I'm using mdInput and I don't know how to change the color of the input. Look this picture:

divider-colors

How to put a blue, red, yellow color?

Do I need to use CSS? And how to make my html recognize the css file and component

lukecorf avatar Mar 05 '17 23:03 lukecorf

@lukecorf , there are 3 types of colors: primary, accent or warn

<md-input-container dividerColor="primary">
   ...
</md-input-conainer>

diicar avatar Mar 05 '17 23:03 diicar

@diicar , thanks but I have a problem look this. In the other applications I created the md Input was colored. But now he is black as in the image below. Can I forget to import something?

untitled

lukecorf avatar Mar 05 '17 23:03 lukecorf

Getting started for material design: https://material.angular.io/guides

diicar avatar Mar 05 '17 23:03 diicar

@lukecorf please consider using stackoverflow for this type of questions: http://stackoverflow.com/search?q=material2

frankspin89 avatar Mar 06 '17 05:03 frankspin89

It seems like you might be missing the Material theme. Please keep GitHub issues for bug reports / feature requests. Better avenues for troubleshooting / questions are stack overflow, gitter, mailing list, etc.

kara avatar Apr 03 '17 21:04 kara

Wondering the same as the OP. I understand we can style based on the themes via the color directive, but what if I just want a white input?

johnknelson avatar Jul 30 '17 19:07 johnknelson

.mat-focused .mat-form-field-label { color: #5cb53f !important; }

.mat-form-field-ripple { background-color: #5cb53f !important; }

regedit15 avatar Feb 14 '18 15:02 regedit15

.mat-focused .mat-form-field-label { color: #5cb53f !important; }

.mat-form-field-ripple { background-color: #5cb53f !important; }

Thank you

Salhi39 avatar Mar 25 '19 23:03 Salhi39

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.