Filters allow users to dynamically filter data and/or content. Through filtering, users can reduce the amount of information being displayed.
Use copy that is clear on its own and only include values that are directly relevant to the current dataset or view. Not everything should be stuffed in filters. Important top level choices which are being made by almost all users are best being displayed upfront. It also declutters and simplifies the user experience.
Use headers or separators when there are multiple related value groups
Filter types determine how options are displayed and interacted with, allowing for flexibility based on the dataset and user needs.
| Variation | Description |
|---|---|
| Default | Use for simple text-based options that do not require additional context. Example: filtering by alphabetical names or straightforward attributes like color or size. |
| Icon | Use when visual recognition can enhance understanding or speed up decision-making. Example: filtering by file types, such as PDF, Word or social media platforms. |
| Multi-Select | Use when users need to select multiple options simultaneously. Example: filtering multiple product categories. |
| Radio | Use when only one option can be selected at a time. Example: filtering by price range. |
| Flag | Use for region- or language-specific filters where flags provide clear identification. Example: filtering by country or language preferences. |
Call to action can be applied if several items require to be actionable. Remember to avoid using confusing call to actions.
Icons used within filters should be simple, with well known visual metaphors. Guidelines for Icons.
For RTL (right-to-left) markets, the layout of the filter is mirrored. The order of the min and max values are in reverse, placing the largest value on the left, and the smallest value on the right.
Here are some reference tables, for those formats, if you would like to read more about localization read the internationalization documentation.
All pages must be responsive and reflow to a minimum of 320px. Filter will reflow to a minimum of 300px, to allow for margins and grid gutters. Reflow accessibility standard
Connect with the DLS Team on Slack or by email.
Check out additional resources.