From 4021929709a27ba76c098bb4a86b328d78138963 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 20 Feb 2019 02:13:01 +0100 Subject: [PATCH] docs(select): update live examples to use labels (#15095) * 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 26bbe8e0df1..d436c80ce74 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 @@

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 ab8fcbb9419..9e5f17b1a02 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 @@

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 233dd9f46c8..f2b02b6a4e5 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 @@

Selected food: {{selectedValue}}

native html select

-