Codex components have a "CSS-only version" that are visually identical to, and replaced by Vue components once javascript loads. In the case of the current search, it is not replaced immediately, but only after the user interacts with the element.
When javascript is not enabled, the components still need to work.
Prerequisites
- there is a temporary flag that controls whether ScopedTypeaheadSearch is shown (T384735)
Acceptance Criteria
- The placeholder text from T384735 is replaced by an html+css version of ScopedTypeaheadSearch, composed of the "CSS-only versions" of Select and TypeaheadSearch, as described in the codex documentation:
- Select: CSS-only version: "The CSS-only version of this component uses the native <select> element. This element will be styled to match the Vue version, but the menu will use native browser styles."
- TypeaheadSearch: CSS-only version: "The CSS-only version of TypeaheadSearch is simply a SearchInput component styled to look like the Vue version of TypeaheadSearch. It will have no menu of results and is meant to be replaced by the Vue component once JavaScript has loaded."
- The search results match the typed input, limited by the selected scope
- Styling matches the component spec sheet:
- Select: width: fit-content, max-width: 256px
