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

@ -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()