indicate if menu has been expanded
This commit is contained in:
parent
607612a1d9
commit
79f7c55a04
|
@ -50,6 +50,10 @@ function tabChange(e, nested) {
|
||||||
target.className = 'is-active';
|
target.className = 'is-active';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toggleMenu(el) {
|
||||||
|
el.setAttribute('aria-expanded', el.getAttribute('aria-expanded') == 'false');
|
||||||
|
}
|
||||||
|
|
||||||
function ajaxPost(form) {
|
function ajaxPost(form) {
|
||||||
fetch(form.action, {
|
fetch(form.action, {
|
||||||
method : "POST",
|
method : "POST",
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<label for="main-nav" role="button" class="navbar-item" aria-label="menu" aria-expanded="false" data-target="mainNav">
|
<label for="main-nav" role="button" class="navbar-item" aria-label="menu" aria-expanded="false" data-target="mainNav" onclick="toggleMenu(this)">
|
||||||
<div class="icon icon-dots-three-vertical"><span class="is-sr-only">Main navigation menu</div>
|
<div class="icon icon-dots-three-vertical"><span class="is-sr-only">Main navigation menu</div>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue