NLS search field — current variants

Review surface for #2503, the search / quick-search half: where the NLS field is used and what it looks like in each layout it already supports. Current behaviour only — nothing here is a proposed design yet.

NLS is a search type, not a widget type. The stand-alone SearchFormNLS widget was retired from the registry on 2026-10-13 and now renders nothing, so these mounts were switched in #3558: the form is SearchForm with searchType:nls, and the single-input simple2 variants are QuickSearch with searchType:nls — formType:simple2 is a QuickSearch preset and has no effect on SearchForm.

What is NOT here, and why. The pill-toolbar composition (formType:advanced+searchType:nls) is not mounted on this page. It renders and it submits, but it discards the typed phrase — measured in a browser, the search it runs carries none of the beds or price that were typed. Every case here parses what you type. The pill row's responsive layout is reviewed on containerWidths.

#2503 places NLS on stand-alone search-form and quick-search widgets, and not on Results / Map headers. Action-plan item 3 is the roll-out to quicksearch via formType:simple2. The cases below show the pill-toolbar form, then what simple2 renders with and without searchType:nls, so the two can be compared directly.

Keep the page URL clean. A ?filter= query param on this page overrides the data-filter on every mount below, so the cases would all render the same thing.


1 — NLS search form, default

The search form's own field set with the NLS text box in place of the area typeahead. This is the successor to the retired stand-alone widget, and the phrase you type is parsed — 3 bed under 500k submits as beds 3, price max 500,000.

SearchForm — searchType:nls

2 — NLS quick search, formType:simple2

A single input plus a magnifying-glass submit, with no filter pills — that is what simple2 renders. searchType:nls swaps the area typeahead for the NLS field (.mbb-input-nls), dropping the Search-Nearby and Selected-Locations chrome with it. The NLS parsing is unchanged — typed text still extracts price, beds, baths and so on.

QuickSearch — formType:simple2+searchType:nls

3 — NLS quick search, formType:simple2 + formLayout:rounded

Adds formLayout:rounded on top. Against case 2 the measured difference is a single class, .rounded-circle on the submit button.

QuickSearch — formType:simple2+formLayout:rounded+searchType:nls

4 — QuickSearch, for comparison

The same widget on the area field. simple1 is the QuickSearch default; simple2 is the token the NLS cases above use, so the pair really is one attribute apart — add or drop searchType:nls.

QuickSearch — formType:simple1 (default)
QuickSearch — formType:simple2
QuickSearch — formType:simple2 + formLayout:rounded

5 — In a narrow slot (420px)

Quick-search usually sits in a hero band or a sidebar rather than full width. Same widget, same tokens, with and without searchType:nls, constrained — the widget sizes from its container, so this is the case that actually matters.

QuickSearch — simple2 + rounded + searchType:nls, 420px
QuickSearch — simple2 + rounded, 420px