dika/openspec/changes/dik-39-menu-items/design.md

7 lines
784 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Design
- Меню оставляем (решение DIK-14), не убираем: пунктов три, все полезные.
- Закрытие: обработчик click на ссылках `#menu a` вызывает toggle(false). Раньше закрытие было только в route() по hashchange, а при клике на ссылку с тем же hash события нет.
- Текущий раздел: route() ставит `aria-current="page"` ссылке с href `#<id>` и снимает с остальных; CSS `nav a[aria-current]` выделяет цветом. Новых текстов нет — переводы не меняются.
- Тесты — статические, как в test/client.test.js (DOM в тестах нет).