Dropdowns
This document covers the styling that will be applied to both the menu dropdowns and the mega dropdowns.
Dropdown Background Color
Edit $dropdown-background to your desired color
Dropdown Reveal Animation Position
When its not visible where do you want it to be positioned?
Change the below to your desired value. The higher the number the lower it sits in the browser.
When the dropdown is visible where do you want it positioned?
Change the below to your desired value. The higher the number the lower it sits in the browser.
Dropdown Chevron Animation
There are three animation choices for the dropdown chevron icon when the dropdown is open and active.
none: no animation
flip: flips the icon 180deg
rotate: rotates the icon 180deg
Dropdown Accessibility
The template does as much as it can to be accessible but it will require you to make a few changes that will be unique to your website.
For every dropdown you will need to add in an aria-label. This tells keyboard users what opening the dropdown will do. Examples:
If the dropdown text is "Men's Clothing" the aria-label should be something like "Toggle Men's Clothing Dropdown"
If the Dropdown Text is "Resources" the aria-label should be something like "Toggle Resources Menu"
You can call it a menu, dropdown, list, etc. That part is up to your website preference.
Last updated