Create the basic moz-input-search component
Categories
(Toolkit :: UI Widgets, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox136 | --- | fixed |
People
(Reporter: tgiles, Assigned: tgiles)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [recomp])
Attachments
(2 external files)
As part of this bug, we should do the following:
- Create boilerplate files required for
moz-input-searchmoz-input-search.mjsmoz-input-search.stories.mjsmoz-input-search.css
- Create basic moz-input-search component which should include the following elements:
- HTML input type="search" element with border around the input
- Label element that notes what the search input is used for
- Description element that gives further context about the search input
- Verify that support-link works as expected since we're extending the
MozBaseInputElementorMozInputTextclass - Write tests for this basic component
- Write stories for this basic component
- There should be a story with description showing and one where description is not showing
- The label should be present in every story as we want to provide an accessible experience with this component
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
This component inherits most of its starting functionality from the
moz-input-text component, and so moz-input-search appears relatively
barebones at the moment. Having the basic component in tree will allow
us to add the necessary features to this component more easily.
The overlapping functionality with moz-input-text is covered by the
newly added test, test_moz_input_search. This test file is effectively a
copy and paste of the test_moz_input_text file until the search specific
features are added.
This component is another example of extending existing reusable
components which allows relatively quick standing up of new components.
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
Depends on D234109
Updated•1 year ago
|
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5c4e3f3f44e0
https://hg.mozilla.org/mozilla-central/rev/f34f30e3af9f
Description
•