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

Feature Request: matFormField appearance="fill" has no way to control the background color. #14381

Open
stot3 opened this Issue Dec 4, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@stot3

stot3 commented Dec 4, 2018

I am enjoying the new additions to mat-form-field but I am unable to use them in my project because the background color of the input is too hard to select. I've tried all manner of css selectors and between inline styling, I have yet to find a way to change the background-color or any documentation stating how the theme it. I am aware that input allows for the underline, and the label, but in this case, there is no way to change the fillColor. I propose maybe something like

<mat-form-field appearance="fill>
<input matInput name="name" fillColor="accent"> 
</mat-form-field>

or

<mat-form-field appearance="fill" fillColor="accent">
<input matInput name="name>
</mat-form-field>

This change will greatly improve the versatility of matInput, and allow for matInput to be used in a variety of applications!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment