Closed Bug 1936651 Opened 1 year ago Closed 1 year ago

Add ability to use support links in moz-input-search

Categories

(Toolkit :: UI Widgets, task, P3)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: tgiles, Unassigned)

References

Details

(Whiteboard: [recomp])

By using support links in moz-input-search, we can help folks more easily determine what the search box is used for and keep them informed.

  • Add ability to pass in a support-link attribute and correctly render the support link depending on if there's a description or not.
    • Most likely, the support link will follow the description text inline but will not exist within the description element. We don't want to recreate Bug 1935161.
  • Add test verifying the support link element is rendered correctly depending on other elements present in moz-input-search
  • Add story showing moz-input-search with a support link

I'm not sure we need a separate bug for this? If the text input is going to extend either MozBaseInputElement or MozInputText (which is just a subclass of MozBaseInputElement...) then the prop will be support-page and we will get this for free as part of bug 1936431

Flags: needinfo?(tgiles)

Ah yeah, good point about the stuff we get for free from MozBaseInputElement or MozInputText. Not sure if we want to close this as invalid then, or keep it around to verify that the support-page stuff works as expected for moz-search-input. Maybe we just reopen this if we discover some issue with how support pages work with this component? What are your thoughts :hjones?

Flags: needinfo?(tgiles) → needinfo?(hjones)

Marking this as invalid, as we should get this functionality for free from the base input component that we have. If for some reason the support-page attribute doesn't work as expected in the moz-input-search component, we can re-open this bug and track the work here.

Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(hjones)
Resolution: --- → INVALID
Summary: Add ability to use support links in moz-search-input → Add ability to use support links in moz-input-search
You need to log in before you can comment on or make changes to this bug.