From 86869021fbc86bf7127b30d63d6c449bd78a1ab4 Mon Sep 17 00:00:00 2001 From: crisbeto Date: Tue, 5 Feb 2019 23:10:06 +0100 Subject: [PATCH] docs(select): update live examples to use labels * Fixes a few examples that didn't have labels for the native select. * Switches all of the examples to use the `mat-label`, instead of a `placeholder`. Fixes #15022. --- .../select-disabled/select-disabled-example.html | 6 ++++-- .../select-error-state-matcher-example.html | 6 ++++-- src/material-examples/select-form/select-form-example.html | 6 ++++-- .../select-hint-error/select-hint-error-example.html | 3 ++- .../select-multiple/select-multiple-example.html | 3 ++- .../select-no-ripple/select-no-ripple-example.html | 3 ++- .../select-optgroup/select-optgroup-example.html | 4 +++- .../select-overview/select-overview-example.html | 4 +++- .../select-panel-class/select-panel-class-example.html | 3 ++- .../select-reset/select-reset-example.html | 3 ++- .../select-value-binding/select-value-binding-example.html | 1 + 11 files changed, 29 insertions(+), 13 deletions(-) diff --git a/src/material-examples/select-disabled/select-disabled-example.html b/src/material-examples/select-disabled/select-disabled-example.html index 26bbe8e0df11..d436c80ce749 100644 --- a/src/material-examples/select-disabled/select-disabled-example.html +++ b/src/material-examples/select-disabled/select-disabled-example.html @@ -4,7 +4,8 @@

mat-select

- + Choose an option + Option 1 Option 2 (disabled) Option 3 @@ -13,7 +14,8 @@

mat-select

native html select

- diff --git a/src/material-examples/select-error-state-matcher/select-error-state-matcher-example.html b/src/material-examples/select-error-state-matcher/select-error-state-matcher-example.html index ab8fcbb94197..9e5f17b1a027 100644 --- a/src/material-examples/select-error-state-matcher/select-error-state-matcher-example.html +++ b/src/material-examples/select-error-state-matcher/select-error-state-matcher-example.html @@ -1,6 +1,7 @@

mat-select

- + Choose one + Clear Valid option Invalid option @@ -14,7 +15,8 @@

mat-select

native html select

- diff --git a/src/material-examples/select-form/select-form-example.html b/src/material-examples/select-form/select-form-example.html index 233dd9f46c81..f2b02b6a4e56 100644 --- a/src/material-examples/select-form/select-form-example.html +++ b/src/material-examples/select-form/select-form-example.html @@ -1,7 +1,8 @@

mat-select

- + Favorite food + {{food.viewValue}} @@ -10,7 +11,8 @@

mat-select

Selected food: {{selectedValue}}

native html select

-