Skip to content

Commit 5fd491b

Browse files
committed
use icon button
1 parent 1a7f9b9 commit 5fd491b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<md-input-container class="example-input-container">
22
<input mdInput type="text" placeholder="Clearable input" [(ngModel)]="value"/>
3-
<md-icon mdSuffix *ngIf="value" (click)="value=''">close</md-icon>
3+
<md-button *ngIf="value" mdSuffix md-icon-button aria-label="Clear" (click)="value=''">
4+
<md-icon>close</md-icon>
5+
</md-button>
46
</md-input-container>

0 commit comments

Comments
 (0)