Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
47 views

I'm using Angular Material's mat-form-field with appearance="outline" and a prefix icon (matPrefix). On initial render, when the input is empty, the label appears too close to the prefix ...
Muthukani K's user avatar
1 vote
1 answer
100 views

Here is the code for reference, <div> <mat-form-field class="w-100 mt-2" appearance="outline"> <mat-label>Enter a name for your quote</mat-...
Mohanish Saim's user avatar
1 vote
1 answer
62 views

I'm having trouble centering the value of the input vertically. When the density is -3 and the font size is 1em the value of the input is not centered correctly. Also the label alignment when there's ...
userdac's user avatar
  • 60
2 votes
1 answer
89 views

The input field is not displayed with the appearance of <mat-form-field> before clicking inside when formGroupName is used with FormArray. See the example: TS: formMain = this.fb.group({ ...
Bruno Belhoste's user avatar
0 votes
1 answer
215 views

Is there a way to use CSS to set appearance='fill' or 'outline' on a mat-form-field without having to use {provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: {appearance: 'outline'}}? I'm asking ...
Onalenna Junior Makhura's user avatar
0 votes
2 answers
850 views

I am looking to change the default styling of Angular Material's MatFormField. I want to reduce the inner padding of the input field in a form field, and reduce the gap between each form field. I am ...
Kristian Mladenov's user avatar
1 vote
1 answer
94 views

So this is the working code: <mat-form-field *ngIf="asFormFieldWithLabel; else selector" style="width: 100%;"> <mat-label>{{asFormFieldWithLabel}}</mat-label> ...
Toni Kanoni's user avatar
  • 2,317
1 vote
1 answer
166 views

I have a small project to display images on our nas. I'm using angular 17. On the main page I have 3 mat-form-fields. For some reason when I add the last of the tree mat-form-fields I get the error - ...
Beach Bum Bob's user avatar
0 votes
1 answer
711 views

I have an Input of type 'datetime-local' inside a matFormField, like this: <mat-form-field> <input formControlName="dateTimeSelect" matInput ...
Scott-MEARN-Developer's user avatar
0 votes
0 answers
447 views

I am creating a login form for my application, and using the mat-form-field component for my inputs, but when I open the login page I notice that the input does not appear in the correct way, it ...
Leonardo Lautenschlaeger's user avatar
0 votes
1 answer
821 views

I have a mat-form-field with a date range picker in Angular 16.I am try to change the color and size of the input but having a hard time.Can anyone assist please ? Here is my code : <div class=&...
New_Angular Developer's user avatar
8 votes
3 answers
5k views

After updating to Angular Material v15 our form fields look like this (sometimes - depending on if there is a margin/padding from the element above): This is how it looked like before: From what I ...
killexe's user avatar
  • 470
0 votes
1 answer
95 views

This is my app - My app How can I write in Java/Visual Studio that in my app when I click on "Upgrade" for the id 1, the "Account" row, to appear CASH - the default value? For now ...
Muresan Alice's user avatar
0 votes
2 answers
826 views

Based on this topic's accepted answer, I managed to get the selected state of the clicked option. I want to disable an input based on a selection of a certain option. With the below example, I am able ...
Ionut's user avatar
  • 869
1 vote
1 answer
944 views

I am building login form using angular mat form. Login form is following. login-form.component.html <form [formGroup]="registerForm" (ngSubmit)="onSubmit()"> <div ...
bcExpt1123's user avatar
1 vote
1 answer
1k views

I’m trying to do a dynamic form with Angular Material. ng-content doesn’t seems to work with mat-form-field. I’m getting this error message: ERROR TypeError: Cannot read properties of undefined (...
orphen92300's user avatar
1 vote
1 answer
119 views

When i tried to open angular material datepicker it was opening upside of an input field. How to make it to open downside of an input field. <mat-form-field appearance="outline" class=&...
I.vignesh David's user avatar
0 votes
1 answer
412 views

As a title, I'm encountering this error with the mat-label and input. After a day of troubleshooting, I couldn't resolve it. I've read a lot of similar question that has been resolved by importing the ...
Davide Fazio's user avatar
1 vote
0 answers
582 views

I'm trying to make two "mat-form-field" side by side and not break the parent div. And, here is the code: <div class="flex gap"> <mat-form-field appearance="...
Carlos Eduardo's user avatar
0 votes
0 answers
796 views

Good afternoon! These days i've been working on to a pokemon-based project which consists in getting a random attack (1 of 4 strings) just by choosing in two selects (the trainer and the pokemon one). ...
Eric Díaz's user avatar
0 votes
1 answer
2k views

I have an angular application that has a login screen. I want to allow the user to toggle the password from being concealed to seeing the text by clicking on an eye in the input box. I am trying to ...
EagleEye1812's user avatar
1 vote
0 answers
264 views

I have some mat-form-field, the data of that field is right aligned and it's font style will set dynamically. if we set the font-style italic the last letter get cut off partially. <mat-form-...
Muthukani K's user avatar
0 votes
1 answer
854 views

I am trying to get selected option in angular through below code. But when I select 1 drop down option then other two gets same as shown in pic. How can I fix this. <div *ngFor="let candidate ...
Muhammad Shafaat Khan's user avatar
0 votes
1 answer
1k views

I have a mat-form-field with the following input inside of a form : <input matInput name="input" type="number" step="any" (input)="doSomething()" required /&...
Ins4nity's user avatar
0 votes
2 answers
1k views

So I have a dropdown: <div class="drop-down" > <mat-select> <mat-option *ngFor="let role of roles | keyvalue" [value]="role"> ...
CuriousCat11's user avatar