Skip to content

Commit 4324849

Browse files
committed
docs: remove references to mdc-select placeholder
This was leftover from the legacy form-field appearance, which no longer exists in MDC. Selects don't have a "placeholder" their equivalent would be a null option
1 parent 9f879b2 commit 4324849

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/dev-app/mdc-select/mdc-select-demo.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<p> Dirty: {{ drinkControl.dirty }} </p>
2727
<p> Status: {{ drinkControl.control?.status }} </p>
2828
<p>
29-
<label for="floating-placeholder">Floating placeholder:</label>
30-
<select [(ngModel)]="floatLabel" id="floating-placeholder">
29+
<label for="floating-label">Floating label:</label>
30+
<select [(ngModel)]="floatLabel" id="floating-label">
3131
<option value="auto">Auto</option>
3232
<option value="always">Always</option>
3333
<option value="never">Never</option>
@@ -323,16 +323,6 @@ <h4>Option group</h4>
323323
</optgroup>
324324
</select>
325325
</mat-form-field>
326-
<h4>Place holder</h4>
327-
<mat-form-field class="demo-full-width">
328-
<select matNativeControl placeholder="place holder">
329-
<option value="" disabled selected></option>
330-
<option value="volvo">Volvo</option>
331-
<option value="saab" disabled>Saab</option>
332-
<option value="mercedes">Mercedes</option>
333-
<option value="audi">Audi</option>
334-
</select>
335-
</mat-form-field>
336326
<h4>Error message, hint, form sumbit</h4>
337327
<mat-form-field class="demo-full-width">
338328
<mat-label>Select your car (required)</mat-label>

0 commit comments

Comments
 (0)