CSS and @font-face fixes

This commit is contained in:
2026-03-12 16:31:58 -03:00
parent 0c4823d263
commit beffd5f4e8
30 changed files with 128 additions and 90 deletions

View File

@@ -1,8 +1,7 @@
const MOBILE_BREAKPOINT_PX = 768;
/** All focusable elements inside the menu (links). */
const getMenuFocusables = (menu) =>
menu.querySelectorAll('a[href]');
const getMenuFocusables = (menu) => menu.querySelectorAll('a[href]');
const mobileMenuHelper = () => {
const mobileMenu = document.getElementById('nav-menu');
@@ -15,10 +14,7 @@ const mobileMenuHelper = () => {
const syncMenuAriaHidden = () => {
if (isMobile()) {
const hidden = !mobileMenuToggle.checked;
mobileMenu.setAttribute(
'aria-hidden',
hidden ? 'true' : 'false',
);
mobileMenu.setAttribute('aria-hidden', hidden ? 'true' : 'false');
// inert removes the subtree from the a11y tree and makes descendants non-focusable
if (hidden) {
mobileMenu.setAttribute('inert', '');