Create a search input that matches the current design system
Categories
(Toolkit :: UI Widgets, enhancement, P3)
Tracking
()
People
(Reporter: mstriemer, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fidefe-reusable-components-ms2])
We currently have a search-textbox
[1] element that is used in a few places, but is currently a XUL element. We should create an HTML version that matches the Design System [2] and our updated process for creating reusable components. It should be documented in Storybook.
While this bug is for the search input, that input is really a special case of the regular text input. It might make sense to create a text input instead and give it a search variant.
[1] https://searchfox.org/mozilla-central/source/toolkit/content/widgets/search-textbox.js
[2] https://www.figma.com/file/2ruSnPauajQGprFy6K333u/Desktop-Components?node-id=800%3A7534
Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 1•1 year ago
|
||
The main feature of search-textbox
is the clear icon, which <input type="search">
+ layout.forms.input-type-search.enabled
provides. Not sure how useful are the other features of search-textbox
, but depending on what you need, you might not need a custom element.
Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 2•1 year ago
|
||
i wanna try this out. outreachy applicant here
Reporter | ||
Comment 3•1 year ago
|
||
Thanks for your interest, however this bug is not ready for work at the moment. If you'd like to find a bug in the Firefox Desktop Frontend you can check https://codetribute.mozilla.org/projects/ff.
Comment 4•10 days ago
•
|
||
A Lit-based search input was added in bug 1826328 - this might make a good foundation for a reusable search input when we decide to tackle this: https://searchfox.org/mozilla-central/source/browser/components/firefoxview/fxview-search-textbox.mjs
Description
•