chore: minor revisions
This commit is contained in:
parent
9c394238e0
commit
881ed4d874
2 changed files with 3 additions and 8 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue