Skip to content

Commit 5628c5d

Browse files
committed
docs(material/form-field): change prefix example to use icon for better alignment
1 parent 0a4dbe1 commit 5628c5d

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/components-examples/material/form-field/form-field-prefix-suffix/form-field-prefix-suffix-example.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@
22
margin-left: 8px;
33
}
44

5-
.example-right-align {
6-
text-align: right;
7-
}
8-
95
input.example-right-align::-webkit-outer-spin-button,
106
input.example-right-align::-webkit-inner-spin-button {
117
display: none;
128
}
13-
14-
input.example-right-align {
15-
-moz-appearance: textfield;
16-
}

src/components-examples/material/form-field/form-field-prefix-suffix/form-field-prefix-suffix-example.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
</mat-form-field>
99

1010
<mat-form-field appearance="fill">
11-
<mat-label>Amount</mat-label>
12-
<input matInput type="number" class="example-right-align">
13-
<span matPrefix>$&nbsp;</span>
14-
<span matSuffix>.00</span>
11+
<mat-label>Network ID</mat-label>
12+
<input matInput type="text">
13+
<mat-icon matPrefix>wifi</mat-icon>
1514
</mat-form-field>
1615
</div>

0 commit comments

Comments
 (0)