Svoboda | Graniru | BBC Russia | Golosameriki | Facebook

Local search

Local search allows the user to search for content within the product they’re using, rather than globally.

Contributors

  • Dan Tallis
  • Simon Meredith
Platform:Web

Overview

An example of where local search can be positioned

How it works

Local search is made up of an input field, search text and the 'search' icon (a magnifying glass). How the pattern is styled and positioned is up to the product team.

A product focused placeholder message will be visible before you select the search box, for example the BBC Weather local search says 'enter a town, city or postcode'.

An example of local search before an interaction

Once someone selects the search box, there will be a clear state change (e.g a blue outline or change in colour). The search message will stay the same.

An example of a focus state for local search

The message clears when typing starts. The auto-suggest results will then appear.

An example of how typing into the search bar prompts auto-suggest results

Rules

  • Local search should always have clear task-based placeholder text such as 'enter a motorway, town or postcode'.
  • The minimum tap areas around auto-complete results are 32 pixels for grid groups 4 (desktop) and 44 pixels for grid groups 1, 2 and 3 (mobile and tablet). For more information on tap areas, read our guide on how to design for touch.
  • Results should be presented in a dropdown below the search box. This dropdown can extend to the same length as the box.

Variations

We recommend putting the 'search' icon in a clear container to show that it's the main call to action. We also recommend introducing a 'cross' icon into the search bar, making it easier to remove the text, cancel the action or start again.

An example of local search with search call to action and cross icons

Within the auto-complete, the results can include titles, iconography and category tags to provide more information about the selection.

An example of titles and iconography in the auto-complete

Pattern in action

This pattern is currently being used by BBC Radio, BBC Food and BBC Weather.