+ While the dropdown-item
can be used as an anchor link <a>
, you can also use a <div>
and insert almost any type of content.
+
diff --git a/docs/_javascript/main.js b/docs/_javascript/main.js index 9a45848a..2517f490 100644 --- a/docs/_javascript/main.js +++ b/docs/_javascript/main.js @@ -2,7 +2,7 @@ document.addEventListener('DOMContentLoaded', () => { // Dropdowns - const $dropdowns = getAll('.dropdown'); + const $dropdowns = getAll('.dropdown:not(.is-hoverable)'); if ($dropdowns.length > 0) { $dropdowns.forEach($el => { diff --git a/docs/css/bulma-docs.css b/docs/css/bulma-docs.css index 298efb3d..a4a7dcd0 100644 --- a/docs/css/bulma-docs.css +++ b/docs/css/bulma-docs.css @@ -3816,11 +3816,16 @@ a.dropdown-item { white-space: nowrap; } -a.dropdown-item:hover, a.dropdown-item.is-active { +a.dropdown-item:hover { background-color: whitesmoke; color: #0a0a0a; } +a.dropdown-item.is-active { + background-color: #00d1b2; + color: #fff; +} + .dropdown-divider { background-color: #dbdbdb; border: none; diff --git a/docs/documentation/components/dropdown.html b/docs/documentation/components/dropdown.html index 11a544b0..311ea8e8 100644 --- a/docs/documentation/components/dropdown.html +++ b/docs/documentation/components/dropdown.html @@ -5,7 +5,7 @@ doc-subtab: dropdown --- {% capture dropdown_example %} -
+ While the dropdown-item
can be used as an anchor link <a>
, you can also use a <div>
and insert almost any type of content.
+
+ The dropdown
component has 2 additional modifiers
+
is-hoverable
: the dropdown will show up when hovering the dropdown-trigger
+ is-active
: the dropdown will show up all the time
+