Dropdown panes float a small panel of links or actions from a trigger. Foundation wires behavior with data-toggle on the button (pointing at the pane’s id) and data-dropdown on the pane. CSS alone cannot open the menu—you need jQuery and $(document).foundation() in the playground.
Markup essentials
- Trigger:
buttonwithdata-toggle="paneId" - Pane:
div.dropdown-panewith matchingidanddata-dropdown - Position: classes like
dropdown-pane-rightordata-position="bottom"tune placement
Keyboard and focus
Test Escape to close and tab order through menu links. Add visible focus styles if you override Foundation defaults in production themes.
Self-check
- Which attribute on the trigger opens a specific pane?
- Why must the playground load Foundation JS?
- What class names the floating panel container?