From e34a4064d9d3dcefdcff80274ec7cb140359aa15 Mon Sep 17 00:00:00 2001 From: "Kenneth G. Franqueiro" Date: Tue, 24 Apr 2018 15:14:31 -0400 Subject: [PATCH] docs(select): Update README to new format (#2589) --- packages/mdc-select/README.md | 88 +++++++++++++++++++++-------------- 1 file changed, 54 insertions(+), 34 deletions(-) diff --git a/packages/mdc-select/README.md b/packages/mdc-select/README.md index 497fbbf6b74..f6a218fc7c7 100644 --- a/packages/mdc-select/README.md +++ b/packages/mdc-select/README.md @@ -35,9 +35,9 @@ browser's native ` + ... + + +
+ +``` + +### Additional Information + #### Select with pre-selected option -When dealing with the select component that has pre-selected values, you'll want to ensure that you -render `mdc-floating-label` with the `mdc-floating-label--float-above` modifier class and the selected -option with the `selected` attribute. This will ensure that the label moves out -of the way of the select's value and prevents a Flash Of Unstyled Content (**FOUC**). +When dealing with a select component that has a pre-selected value, include the `mdc-floating-label--float-above` +modifier class on the `mdc-floating-label` element, and add the `selected` attribute to the selected option. +This will ensure that the label moves out of the way of the select's value and prevents a Flash Of Unstyled Content +(**FOUC**). ```html
@@ -94,7 +119,7 @@ of the way of the select's value and prevents a Flash Of Unstyled Content (**FOU
``` -#### Select with floating label as the placeholder +#### Using the floating label as the placeholder By default, `` element. ```html
@@ -148,17 +165,20 @@ Since MDC Select uses native `` element. | +| `mdc-select__native-control` | Mandatory. The native `