mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-28 12:24:23 +00:00
0ce084170a
* Setup Cypress tests for box and button * Add container tests * Add Cypress workflow * Use npm install * Update Cypress workflow * Add Jekyll build * Test other action * Test custom setup * Use other ruby action * Test without flag * Move cypress to docs folder * Record runs * Add Content, Icon, Image specs * Add Notification specs * Add Progress and Table specs * Add Tags specs * Add Title specs * Add breadcrumb specs * Add more specs * Add media specs * Add menu specs * Add modal specs * Add navbar specs * Add pagination specs * Add panel specs * Add tabs specs, Add form checkbox radio specs * Add utils * Add file specs * Add input textarea specs * Add select specs * Add form tools specs * Add other elements specs * Add footer and hero specs * Add Hero specs * Add section specs * Add grid specs * Add column sizes specs * Add tiles specs * Add generic specs * Fix generic tests * Make font family test looser * Remove system-ui test * Remove important flag * Fix disabled select color
52 lines
1.2 KiB
HTML
52 lines
1.2 KiB
HTML
---
|
|
layout: cypress
|
|
title: Components/Dropdown
|
|
---
|
|
|
|
{% capture dropdownTrigger %}
|
|
<div class="dropdown-trigger">
|
|
<button class="button" aria-haspopup="true" aria-controls="dropdown-menu">
|
|
<span>Dropdown button</span>
|
|
<span class="icon is-small">
|
|
<i class="fas fa-angle-down" aria-hidden="true"></i>
|
|
</span>
|
|
</button>
|
|
</div>
|
|
{% endcapture %}
|
|
|
|
{% capture dropdownMenu %}
|
|
<div class="dropdown-menu">
|
|
<div class="dropdown-content">
|
|
<a href="#" class="dropdown-item">
|
|
Dropdown item
|
|
</a>
|
|
<a class="dropdown-item">
|
|
Other dropdown item
|
|
</a>
|
|
<a href="#" class="dropdown-item is-active">
|
|
Active dropdown item
|
|
</a>
|
|
<div class="dropdown-item">
|
|
<p>You can insert <strong>any type of content</strong> within the dropdown menu.</p>
|
|
</div>
|
|
<a href="#" class="dropdown-item">
|
|
Other dropdown item
|
|
</a>
|
|
<hr class="dropdown-divider">
|
|
<a href="#" class="dropdown-item">
|
|
With a divider
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{% endcapture %}
|
|
|
|
<div id="dropdown" class="dropdown">
|
|
{{ dropdownTrigger }}
|
|
{{ dropdownMenu }}
|
|
</div>
|
|
|
|
<div id="dropdown-active" class="dropdown is-active">
|
|
{{ dropdownTrigger }}
|
|
{{ dropdownMenu }}
|
|
</div>
|