Add ability to use support links in moz-input-search
Categories
(Toolkit :: UI Widgets, task, P3)
Tracking
()
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-linkattribute 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
Updated•1 year ago
|
Comment 1•1 year ago
|
||
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
| Reporter | ||
Comment 2•1 year ago
|
||
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?
| Reporter | ||
Comment 3•1 year ago
•
|
||
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.
| Reporter | ||
Updated•1 year ago
|
Description
•