Skip to content

Commit

Permalink
Update selectlist anatomy (#887)
Browse files Browse the repository at this point in the history
- Change selectedvalue to selectedoption
- Add marker part
- Add optional legend part
  • Loading branch information
lukewarlow authored Nov 18, 2023
1 parent 390fa16 commit 03eb5e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion site/src/components/select-anatomy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ const SelectAnatomy = () => {
<Host name="select">
<Slot name="button">
<Part name="button type=selectlist">
<Part name="selectedvalue">Currently selected value</Part>
<Part name="selectedoption">Currently selected option</Part>
<Part name="marker"></Part>
</Part>
</Slot>
<Slot name="listbox">
<Part name="listbox">
<Slot>
<Part name="optgroup (optional)">
<Part name="legend (optional)">Optgroup label</Part>
<Part name="option">Option text</Part>
</Part>
</Slot>
Expand Down

0 comments on commit 03eb5e5

Please sign in to comment.