You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 17, 2020. It is now read-only.
DevTools search and filter input fields provide panel or pane specific search and filtering capabilities.
Usage

Provide a search or filter input field for users when a panel or pane specific action is capable of producing a large quantity of data of varying types or categories. Typically, the data would be formatted as a list of entries similar to logs in the Console or requests in the Network Monitor.
Styles
DevTools search and filter bars
Search and filter bars in DevTools appear within panel toolbars and are often signified by a magnifying glass or filter funnel icon within the field.

The console toolbar provides users with a “Toggle filter bar” button which toggles the visibility of a secondary toolbar containing category filter buttons.
The “Toggle filter bar” button is illustrated with the filter funnel icon, as such this icon is not repeated within the filter input field.
Upon hover, The filter input bar within the Network Monitor reveals a “Learn more about filtering” button (illustrated with the [help](https://design.firefox.com/icons/viewer/#help)/question mark icon), clicking this button directs users to an MDN article which examines Network Monitor filtering and other Network Monitor exclusive topics.
Behaviour
Filter feedback

{:.animated}
The filter input bar provides visual feedback to the user depending on whether a text match is found.
In addition to the color changes below, the clear search icon within the input field also changes to a red variant in the event that no match is discovered.
Color
Light Mode

Match found
Background: #FFF89Ephoton color needed
Border: #ffbf00photon color needed
No match found
Background: #ffe5e5photon color needed
Border: #e52e2ephoton color needed
Dark Mode

When text is entered into either a search or filter input bar, a “search clear” button should appear within the input area illustrated by a cross enclosed in a circle.
Clicking the button should immediately clear any entered contents of the input field, revealing the initial placeholder text.
Autocomplete box

{:.animated}
Search input bars can provide the user with an optional autocomplete popup when text entered matches one or more existing patterns.
In the Inspector, the search autocomplete box presents matches for tag and class names.
Future Improvements
Standardising and combining
The console requires a search interface to be exposed, this project which is currently in discussion on Github raises questions regarding the future of the filter interface.
Suggestions include a custom filter doorhanger menu, a combination search/filter interface and button to reveal an additional filter input below the search bar.
Work carried out in the console should also be considered for application to the Network Monitor in an effort to further standardise the toolbar behaviour across panels.