diff --git a/package.json b/package.json index eaf7b00f..a2332b65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "19.5.7", + "version": "19.5.8", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/assets/scripts/menu.js b/src/assets/scripts/menu.js index ede1de67..d3aa1ab0 100644 --- a/src/assets/scripts/menu.js +++ b/src/assets/scripts/menu.js @@ -13,14 +13,9 @@ window.addEventListener('load', () => { const link = item.querySelector('a') if (link) link.setAttribute('tabindex', isMobile() && !isExpanded ? '-1' : '0') }) - if(isExpanded) { - menuLabelText.textContent = 'Close mobile menu' - } - if (!isExpanded) { - menuLabelText.textContent = 'Open mobile menu' - menuButtonContainer.focus() - } + if(isExpanded) menuLabelText.textContent = 'Close mobile menu' + if (!isExpanded) menuLabelText.textContent = 'Open mobile menu' } updateTabIndex()