chore: minor revisions

This commit is contained in:
Cory Dransfeldt 2024-06-19 08:42:32 -07:00
parent 9c394238e0
commit 881ed4d874
No known key found for this signature in database
2 changed files with 3 additions and 8 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "19.5.7", "version": "19.5.8",
"description": "The source for my personal site. Built using 11ty.", "description": "The source for my personal site. Built using 11ty.",
"type": "module", "type": "module",
"scripts": { "scripts": {

View file

@ -13,14 +13,9 @@ window.addEventListener('load', () => {
const link = item.querySelector('a') const link = item.querySelector('a')
if (link) link.setAttribute('tabindex', isMobile() && !isExpanded ? '-1' : '0') if (link) link.setAttribute('tabindex', isMobile() && !isExpanded ? '-1' : '0')
}) })
if(isExpanded) {
menuLabelText.textContent = 'Close mobile menu'
}
if (!isExpanded) { if(isExpanded) menuLabelText.textContent = 'Close mobile menu'
menuLabelText.textContent = 'Open mobile menu' if (!isExpanded) menuLabelText.textContent = 'Open mobile menu'
menuButtonContainer.focus()
}
} }
updateTabIndex() updateTabIndex()