pattern-library 2 linked patterns checked
MOJ Design System Search
Documents a search component with a labeled search field, submit action, hint support, and no-results guidance.
Read with a purpose
What this source can teach
Use this source to compare a documented solution with the task and states in your own product.
- Start with the original. Open the source and find the guidance or example relevant to your task.
- Trace the connection. Use the claim notes below to see how this site applies the source to specific patterns.
- Check the setting. Compare the source's platform, people, and constraints with your own decision.
Pattern Decisions This Source Supports
| Pattern | Supported decision | Required contract | Claim note |
|---|---|---|---|
| Basic search | Choose basic search when the task is content retrieval. | Typing or submitting a query changes the visible result set predictably. | MOJ search guidance supports a labeled search field, submit action, hints, and no-results recovery for search tasks. |
| Filter reset that clears unrelated search | Flag this anti-pattern when a filter reset clears or changes query text, submitted search, search scope, saved search identity, search history, sort order, page size, view mode, selected rows, or route context that is not visibly part of the filters. | Every reset control names the state it changes. | Supports search query entry, submit action, and no-results recovery as search behavior separate from filter reset. |
Comparisons supported by this source
- Filter reset that clears unrelated search vs filter panel vs basic search vs filter chips vs saved search
Supports treating query entry and query clearing as a search task separate from filtering controls.
Evidence Role
This source is treated as pattern-library evidence. Its value comes from the specific claims and setting described above.
Publisher: Ministry of Justice. Last checked: .