mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(form-field): invert "visibility" icon for password example (#13417)
Based on https://material.io/design/components/text-fields.html#outlined-text-field
This commit is contained in:
committed by
vivian-hu
parent
84d8f5beb8
commit
cdf83097f4
+1
-1
@@ -1,7 +1,7 @@
|
||||
<div class="example-container">
|
||||
<mat-form-field>
|
||||
<input matInput placeholder="Enter your password" [type]="hide ? 'password' : 'text'">
|
||||
<mat-icon matSuffix (click)="hide = !hide">{{hide ? 'visibility' : 'visibility_off'}}</mat-icon>
|
||||
<mat-icon matSuffix (click)="hide = !hide">{{hide ? 'visibility_off' : 'visibility'}}</mat-icon>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field>
|
||||
|
||||
Reference in New Issue
Block a user