I have a component that contains two Angular Material form components:
<!-- First input -->
<mat-form-field>
<mat-label>Password</mat-label>
<input matInput type="text">
</mat-form-field>
<br>
<!-- Second input -->
<mat-form-field>
<mat-label>Password</mat-label>
<input matInput type="text">
</mat-form-field>
Before focusing on these input fields, they should look like this:
https://i.stack.imgur.com/hW4Et.png
I want the first input mat-label to be blue when focused and floating at the top left corner.
https://i.stack.imgur.com/C8ske.png
For the second input mat-label, I prefer it to be black in color.
https://i.stack.imgur.com/hH3Bn.png
Is there anyone who can help me achieve this? Thank you very much!