Closed Bug 1936431 Opened 1 year ago Closed 1 year ago

Create the basic moz-input-search component

Categories

(Toolkit :: UI Widgets, task, P3)

task

Tracking

()

RESOLVED FIXED
136 Branch
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-search
    • moz-input-search.mjs
    • moz-input-search.stories.mjs
    • moz-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 MozBaseInputElement or MozInputText class
  • 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
Whiteboard: [recomp]
Blocks: 1936645
Blocks: 1936648
Blocks: 1936651
Blocks: 1936652
Summary: Create the basic moz-search-input component → Create the basic moz-input-search component
Assignee: nobody → tgiles

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.

Attachment #9459497 - Attachment description: Bug 1936431 - Use testCommonInputEvents in test_moz_input_text.html. r=#recomp-reviewers → Bug 1936431 - Use testTextBasedInputEvents in test_moz_input_text.html. r=#recomp-reviewers
Pushed by tgiles@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5c4e3f3f44e0 Create basic moz-input-search reusable component. r=reusable-components-reviewers,desktop-theme-reviewers,hjones https://hg.mozilla.org/integration/autoland/rev/f34f30e3af9f Use testTextBasedInputEvents in test_moz_input_text.html. r=reusable-components-reviewers,hjones
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Duplicate of this bug: 1936652
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: