Documentation
Nickarce.com
  • ⏳Changelogs
    • Mega Menu Template
  • 📃Docs
    • Mega Menu Template
      • Getting Started
        • Importing Template
        • Add Your Logos
        • Navigation Items
        • Importing Mega Dropdown Template
        • Dropdowns
          • Menu Dropdowns
          • Mega Dropdowns
        • Mobile
      • How To's
        • Change Mega Dropdown Container Width
        • How to Change Back Button Text
        • Add Scrollbar On Mobile Menu
        • Adding Custom CSS
        • Change Dropdown Activation Toggle
        • How to Query Loop Over Menu Dropdown
Powered by GitBook
On this page
  • Dropdown Background Color
  • Dropdown Reveal Animation Position
  • When its not visible where do you want it to be positioned?
  • When the dropdown is visible where do you want it positioned?
  • Dropdown Chevron Animation
  • Dropdown Accessibility
  1. Docs
  2. Mega Menu Template
  3. Getting Started

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

// WHAT BACKGROUND COLOR DO YOU WANT FOR DROPDOWN WRAPPER ******
$dropdown-background: white;

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.

$fade-up-closed: 40px; // STARTING POSITION (not active)

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.

$fade-up-open: 20px; // ENDING POSITION (active)

Dropdown Chevron Animation


There are three animation choices for the dropdown chevron icon when the dropdown is open and active.

  1. none: no animation

  2. flip: flips the icon 180deg

  3. rotate: rotates the icon 180deg

$active-dropdown-icon-anim: flip; // SELECTION (none/flip/rotate)

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.

PreviousImporting Mega Dropdown TemplateNextMenu Dropdowns

Last updated 1 year ago

📃