The search modal is what’s used to make a search and get to the results page. You need to add a way for the user to open the modal.
There are three ways to do this:
Optional: Alignment options
When using the search field, the modal will automatically align to the SearchField (landscape modal) or align to it initially and then animate the X-direction to be centered (portrait modal).
When using a search button, there are two different alignment modes available, provided you’re using the landscape search modal:
Center aligned (default), Click to enlarge
Vertically aligned to button, click to enlarge
One advantage of aligning the modal to the button is that the position of the modal won’t shift as the content in it changes.
Enabling the vertically-aligned-to-button mode
- When re-using your existing search button, add
data-align-to-self="true"to the element.
- When using the “Depict Search Button”-block, check the “enable button to modal in y-axis” box in the block settings
Block settings of the "Depict Search Button"