Skip to content

Commit

Permalink
correct sentence about selectedoption (#1051)
Browse files Browse the repository at this point in the history
* correct sentence about selectedoption

* remove button from example which uses fallback
  • Loading branch information
josepharhar authored May 3, 2024
1 parent adf940d commit 47a3c96
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions site/src/pages/components/selectlist.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ This example changes the fonts and colors of various parts of the button and lis
<div className="code-container">
```html
<select>
<button>
<selectedoption></selectedoption>
</button>
<datalist>
<option>one</option>
<option>two</option>
Expand Down Expand Up @@ -332,7 +329,7 @@ Because the various parts of the select element can be styled, it's important to
- `<select>` - The root element that contains the button and listbox.
- button (slot) - The portion of the element which is rendered in the position of the button which opens the listbox. It should contain a button to open the listbox.
- `<button>` - The button which opens the listbox when clicked.
- `<selectedoption>` - The element which contains the text of the currently selected option. Every time that the user selects an option, the browser will replace the text content of this element with the text content of the selected option.
- `<selectedoption>` - The element which contains the text of the currently selected option. Every time that the user selects an option, the browser will replace the children of this element with the result of calling `cloneNode()` on the newly selected `<option>`.
- `<datalist>` - The wrapper that contains the `<option>`(s) and `<optgroup>`(s).
- `<optgroup>` - Optional element which groups `<option>`(s) together with a label.
- `<legend>` - Used to provide a label to an `<optgroup>` element. It must be the first child of the `<optgroup>`.
Expand Down

0 comments on commit 47a3c96

Please sign in to comment.