feat: accessibility for site-menu

- #menu-toggle: aria-expanded, aria-controls, aria-label (updated on toggle)
- #site-menu: inert when closed (blocks focus + screen readers), removed when open

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-27 12:13:40 +01:00
parent c28f38c6e1
commit 8a0f58c053
3 changed files with 20 additions and 7 deletions

View file

@ -80,7 +80,7 @@
<?php endforeach ?>
</div>
<button id="menu-toggle">
<button id="menu-toggle" aria-expanded="false" aria-controls="site-menu" aria-label="Ouvrir le menu">
<span class="open"><?= svg('assets/icons/menu.svg') ?></span>
<span class="close"><?= svg('assets/icons/close.svg') ?></span>
</button>