A search field is a text input enhanced for finding results. It can be used alone or with a typeahead menu of list items.Â
The search field has placeholder text when empty and unfocused. The placeholder text disappears as the user begins typing into the field.
Make the placeholder specific. Give the user a hint about the content they’re searching and/or what parameters they can use to search.
Add critical information to the placeholder. The placeholder text disappears once the user begins entering data and will therefore be unavailable.
Ensure you use a descriptive label or commonly recognized label for Heading and Hint Text so users can anticipate what types of results will be included.
Show loading indicators or success/error messages to communicate the status of the search. Use simple, concise messages that help users understand what went wrong or how to proceed.
For RTL (right-to-left) markets, the layout of the search component 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.
If you would like to read more about localization, please see reference tables in internationalization documentation.
All pages must be responsive and reflow to a minimum of 320px. Search 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.