Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mat Input placeholder text is blurry

The matInput placeholder text is blurry on Chrome/Safari (I think everything).

Code:

<div class="form-group">
     <mat-form-field>
        <input matInput placeholder="Email" ngModel name="email" id="email" type="email" required>
    </mat-form-field>
</div>
<div class="form-group">
   <mat-form-field>
        <input matInput placeholder="Password" ngModel name="password" id="password" type="password" required>
   </mat-form-field>
</div>

Screenshot:

enter image description here

like image 994
user10181542 Avatar asked Oct 28 '25 03:10

user10181542


1 Answers

This issue was caused by centering the element with transform/translate 50%.

Using flex box and aligning the item center fixed the issue!

Just a heads up!

like image 124
user10181542 Avatar answered Oct 29 '25 18:10

user10181542



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!