Generic selectors

Exact matches only

Search in title

Search in content

Post Type Selectors

Search

A Search component enhances user experience by enabling quick, intuitive, and refined information retrieval.

  • Overview
  • Specs
  • Guidelines

Pattern

A Search component is a user interface element that allows users to input queries to find specific information in an application or website. It is designed to enhance user experience by providing quick access to relevant data based on the user’s input.

To enhance user experience, the Search component often includes a responsive design for optimal use on multiple devices, accessibility features for users with disabilities, and error handling to efficiently manage scenarios without results.

search_bar_anatomy
Search Bar anatomy

1: Search Icon

2: Quick Filters

3: Recently opened apps and items

4: Navigation Icon

5: View all Search Results

search_bar_usedfor
Search Bar quick filters in use

Used for:

Topbar

To maintain consistency across all views, the Search Bar is placed inside the topbar pattern.

Data Grid

In order to filter more easily, a Search Bar is integrated into the topbar.

Ease of Use

A Search Bar offers a familiar and intuitive interface for users, making it easier to understand and interact with in different applications and platforms;

Don’t use for:

Sidebar

A Search Bar should not be inserted in a sidebar, as the search for menu entries is already covered by the search in the top bar.

Limited Use

If the app or website has a very specific and limited set of tasks users can perform, a Search Bar might not be necessary. A well-designed interface with clear calls to action can be more efficient for users who know exactly what they need to do.

Search applied inside Sidebar

Demo

Access the Figma file and inspect the element using Dev Mode.

search_bar_demo
Search Bar demo

Last Update

Old version of Search
search_bar_usedfor
New version of search bar
  • Updated color of items in different states;
  • Updated drop-down;
  • Added new quick filters feature;

Related

Filter Area

Under Maintenance …

Search Bar states

Enabled
Search Bar in the enabled state
.enabled {
  search-stroke: var(--grey-4);
  search-bg: var(--grey-1);
  icon: var(--grey-8);
  placeholder: var(--grey-7);
}
Hover
Search Bar in the hover state
.hover{
  search-stroke: var(--grey-5);
  search-bg: var(--grey-2);
  icon: var(--grey-8);
  placeholder: var(--grey-7);
}
Focus
Search Bar in the focus state
.focus{
  search-stroke: var(--Theme-Theme-100);
  search-bg: var(--grey-1);
  icon: var(--grey-8);
  placeholder: var(--grey-7);
}

Size

Unique Size
Search Bar size
.uniqueSize {
  height: 36px;
  padding: var(--spacement-8, --spacement-12);
  gap: var(--spacement-8);
}

Drop-down

States

Enabled
search_bar_dropdown_enable
Search Bar drop-down in the enabled state
.enabled {
  background: var(--Greys-Grey-1);
}
Hover
search_bar_dropdown_hover
Search Bar drop-down in hover state
.hover{
  background: var(--Greys-Grey-2);
}

Size

Unique Size
search_bar_dropdown_enable
Search Bar drop-down paddings
.uniqueSize {
  display: flex;
  padding: var(--Spacing-spacing-12, 12px) 0px var(--Spacing-spacing-8, 8px) 0px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--Spacing-spacing-4, 4px);
  align-self: stretch;
}

Useful links

guidelines figma accent icon

Consult our figma file to access our assets and inspect them in dev mode.

polygon-framework

This component is or will be provided by the Polygon framework. See its documentation to learn more.

This element is in line with the guidelines of the CDS (Cegid Design System). Find out more.

Behavior

AutoComplete

The AutoComplete feature in a Search component enhances user experience by providing real-time suggestions as users type their queries.

As the user inputs each character, the component processes the current input to find and display a list of matching suggestions below the Search field, updating dynamically with each keystroke.

Users can navigate through the suggestions using the keyboard or mouse, and when they select a suggestion, the Search field is filled in and the Search usually starts.

Search Bar behavior

Begin the AutoComplete when the first character is inserted.

Use different list variations in the same drop-down.

Quick filters

The quick filters feature in a Search component enhances user experience by providing them with a quick way to go directly to their search objective.

As the user selects the quick filter they want, the component will dynamically update with each option selected.

Search Bar quick filters

Case Studies

Accessible Web for Everyone

Declaração de Acessibilidade do Compose Design

O Compose Design é gerido pela equipa Experience Architecture da Cegid e foi desenvolvido para ser utilizado pelo maior número …
Why Web Accessibility Matters - And How to Start

Why Web Accessibility Matters – And How to Start

Web accessibility is about designing inclusive digital experiences that benefit everyone, guided by four key principles and driven by the …
Writing for Everyone

Writing for Everyone: Every Word Counts in Accessibility

Writing for everyone is an essential part of any digital product. It can and does make a big difference to …

Outline