First let s define our appearance constant of type matformfielddefaultoptions which will contain default appearance.
Mat form field appearance.
Height of mat form field is not changed.
Bug feature request or proposal.
This will change the colour of the element when you hover over it.
Without any mat label or mat hint defined inside mat form field with appearance standard fill or outline mat form field s height should be reduced and content should be centered.
The mat form field an angular directive is used to create a wrapper over angular components and is used to apply text styles like underline bold hints etc.
What is the current behavior.
In our case we will be setting our form field appearance as outline.
I am getting the default mat form field outline text box view with a border corner radius.
Is there any way to remove the b.
To achieve this we are going to use token injection mat form field default options to set the default form field appearance.
Mat form field appearance outline mat form field outline thick color.
Mat icon button s in the mat prefix of suffix should be centered vertically with respect to the border of the outline form field text in the mat prefix or suffix should be aligned with the input text baseline.
Following angular component can be used within mat form field.
I am using the angular material outline mat form field to design a form.
The functionality for resizing the form fields is built into angular material so unless you want to change relative proportions in the field you don t need to get muddy with resizing individual components see documentation.
P s if you have as well a suffix or a prefix element to override those colour just add this.
The mat form field style can override or change by change the styles of mat form field and mat form field.