From d4a13ee680abf18ea036e99872150955e863e4bd Mon Sep 17 00:00:00 2001 From: Kirk Esterline Date: Mon, 9 Dec 2024 12:52:53 -0500 Subject: [PATCH] Created larger click spots for secondary navbar. Updated the querySelectorAll for navbarSecondaryDesktop to be the entire li within the containing div not limited to the 'a' only. This increased the clickable area resulting in a slightly better user experience. --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 48ad150..ece838a 100644 --- a/app.js +++ b/app.js @@ -53,7 +53,7 @@ navbarSecondaryMobile.querySelectorAll('a') }) -navbarSecondaryDesktop.querySelectorAll('a') +navbarSecondaryDesktop.querySelectorAll('#js__navbar-secondary--desktop li') //Changed the selector from 'a' to '#js__navbar-secondary--desktop li' to select each li inside the desktop secondary navbar .forEach((e) => { e.addEventListener('click', () => { let sectionName = e.innerHTML.toLowerCase();