Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 45 additions & 15 deletions packages/mdc-select/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,19 @@ The select requires that you set the `width` of the `mdc-select__anchor` element
<ul class="mdc-list">
<li class="mdc-list-item mdc-list-item--selected" data-value="" aria-selected="true"></li>
<li class="mdc-list-item" data-value="grains">
Bread, Cereal, Rice, and Pasta
<span class="mdc-list-item__text">
Bread, Cereal, Rice, and Pasta
</span>
</li>
<li class="mdc-list-item" data-value="vegetables">
Vegetables
<span class="mdc-list-item__text">
Vegetables
</span>
</li>
<li class="mdc-list-item" data-value="fruit">
Fruit
<span class="mdc-list-item__text">
Fruit
</span>
</li>
</ul>
</div>
Expand Down Expand Up @@ -120,13 +126,19 @@ The following is an example of the select component with all of the necessary ar
<ul class="mdc-list">
<li class="mdc-list-item mdc-list-item--selected" aria-selected="true" data-value="" role="option"></li>
<li class="mdc-list-item" data-value="grains" role="option">
Bread, Cereal, Rice, and Pasta
<span class="mdc-list-item__text">
Bread, Cereal, Rice, and Pasta
</span>
</li>
<li class="mdc-list-item mdc-list-item--disabled" data-value="vegetables" aria-disabled="true" role="option">
Vegetables
<span class="mdc-list-item__text">
Vegetables
</span>
</li>
<li class="mdc-list-item" data-value="fruit" role="option">
Fruit
<span class="mdc-list-item__text">
Fruit
</span>
</li>
</ul>
</div>
Expand Down Expand Up @@ -181,13 +193,19 @@ to set the selected item. The select also needs the text from the selected eleme
<ul class="mdc-list">
<li class="mdc-list-item" data-value=""></li>
<li class="mdc-list-item" data-value="grains">
Bread, Cereal, Rice, and Pasta
<span class="mdc-list-item__text">
Bread, Cereal, Rice, and Pasta
</span>
</li>
<li class="mdc-list-item mdc-list-item--selected" data-value="vegetables" aria-selected="true">
Vegetables
<span class="mdc-list-item__text">
Vegetables
</span>
</li>
<li class="mdc-list-item" data-value="fruit">
Fruit
<span class="mdc-list-item__text">
Fruit
</span>
</li>
</ul>
</div>
Expand Down Expand Up @@ -264,13 +282,19 @@ programmatically select a disabled list item.
<ul class="mdc-list">
<li class="mdc-list-item" data-value=""></li>
<li class="mdc-list-item" data-value="grains">
Bread, Cereal, Rice, and Pasta
<span class="mdc-list-item__text">
Bread, Cereal, Rice, and Pasta
</span>
</li>
<li class="mdc-list-item mdc-list-item--selected mdc-list-item--disabled" data-value="vegetables">
Vegetables
<span class="mdc-list-item__text">
Vegetables
</span>
</li>
<li class="mdc-list-item" data-value="fruit">
Fruit
<span class="mdc-list-item__text">
Fruit
</span>
</li>
</ul>
</div>
Expand Down Expand Up @@ -308,13 +332,19 @@ structure.
<ul class="mdc-list">
<li class="mdc-list-item mdc-list-item--selected" data-value="" aria-selected="true"></li>
<li class="mdc-list-item" data-value="grains">
Bread, Cereal, Rice, and Pasta
<span class="mdc-list-item__text">
Bread, Cereal, Rice, and Pasta
</span>
</li>
<li class="mdc-list-item" data-value="vegetables">
Vegetables
<span class="mdc-list-item__text">
Vegetables
</span>
</li>
<li class="mdc-list-item" data-value="fruit">
Fruit
<span class="mdc-list-item__text">
Fruit
</span>
</li>
</ul>
</div>
Expand Down