Skip to content
Snippets Groups Projects
Commit 2df1f3f3 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

move dropdown to separate blocks

parent 5aa260d1
No related branches found
No related tags found
1 merge request!29Feat/redesign
Pipeline #18485 passed
<li>
<a href="{{ url }}">
{{ name }}
</a>
</li>
\ No newline at end of file
<div
class="dropdown nav-link js-scroll-anchor"
tabindex="0"
>
<div class="dropbtn">
{{ name }}
<span class="drop-arrow">
<i class="ico--chevron-down"></i>
</span>
</div>
<ul class="dropdown-content">
{% for nested_item in menu_items %}
{% include "patterns/atoms/dropdown/dropdown_item.html" with name=nested_item.name url=nested_item.url %}
{% endfor %}
</ul>
</div>
\ No newline at end of file
......@@ -66,27 +66,6 @@
{% endfor %}
{% for parent in menu_parents %}
<div
class="dropdown nav-link js-scroll-anchor"
tabindex="0"
>
<div class="dropbtn">
{{ parent.name }}
<span class="drop-arrow">
<i class="ico--chevron-down"></i>
</span>
</div>
<div class="dropdown-content">
{% for nested_item in parent.menu_items %}
<li>
<a href="{{ nested_item.url }}">
{{ nested_item.name }}
</a>
</li>
{% endfor %}
</div>
</div>
{% include "patterns/molecules/dropdown/dropdown.html" with name=parent.name menu_items=parent.menu_items %}
{% endfor %}
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment