Styling
Styling SA5's Autocomplete Element
SA5's Autocomplete element is highly styleable.
Input Styling
Style the input and dropdown indicator icon
Set placeholder text in your input element as a hint for how to use the element on your site
Dropdown Styling
General styling like rounded corners and background color
Scrollbar styling
Visible only when needed
Dropdown Item Styling
Style the list items any way you want;
Hover styling
Add icons
Support multiple parts, such as pricing indicators
To make more complex layouts, use a Link block rather than a Dropdown Link element, so that you can arrange contents within it.
Examples
Scrollbar Styling
The list scrollbar can be made more attractive on most browsers by applying some custom CSS. Adjust as desired.
Here, we've given the Dropdown List element a class of service-find_dropdown-list
. Change the CSS selectors below to match whatever class you give yours.
Last updated