Dropdown menus are useful when you need a user to select one option from a series of predefined choices. Here are a few recommendations for best practices:
Structure: Wrap the dropdown's trigger and the dropdown menu within .dropdown
, or another element that declares position: relative;
. Then, add the menu's HTML.
Dropdown | Basic Sass file: /sass/_dropdowns.scss