Create moz-select component
Categories
(Toolkit :: UI Widgets, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox134 | --- | fixed |
People
(Reporter: mstriemer, Assigned: mstriemer)
References
(Blocks 1 open bug)
Details
(Whiteboard: [recomp])
Attachments
(3 external files)
Create a <moz-select> element that can layout a select using our standard input element helpers. The helpers will need an update to support the select being underneath the label.
For version one we will use an unstyled <select> element. We should discuss the API and fill out the component's API docs template as a team.
Potential markup could slot in <option> elements, however this may require updating all consumers in the future if we need to start customizing the elements in the future. Some placeholder element like a <moz-option> may make sense. Potentially we could make the <option> elements placeholders in the future, this is also worth some discussion.
<moz-select label="Destination">
<option value="pdf">Save to PDF</option>
<option value="office-printer">Office Printer</option>
</moz-select>
| Assignee | ||
Comment 1•2 years ago
|
||
This was created with the assistance of Mozilla's ChatGPT 4o instance.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
Depends on D226203
| Assignee | ||
Comment 3•2 years ago
|
||
Depends on D226697
Comment 5•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e113a742f02b
https://hg.mozilla.org/mozilla-central/rev/01481c4a14c9
https://hg.mozilla.org/mozilla-central/rev/fe4dbe34c9a4
Updated•2 years ago
|
Description
•