Skip to content

Commit

Permalink
Removed all references to redundant 'padding' class on primary naviga…
Browse files Browse the repository at this point in the history
…tion js and html
  • Loading branch information
chrisnajman committed Jan 11, 2024
1 parent 6bc919c commit 6318f18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<h1>Accessible Mobile Menu</h1>
<p>To interact with the mobile menu, narrow the window width to 768px or less.</p>
</header>
<div id="primary-navigation" class="primary-navigation padding">
<div id="primary-navigation" class="primary-navigation">
<div class="hamburger-button-wrapper">
<h2>Menu</h2>
<button class="hamburger-button" id="hamburger-button" aria-controls="site-navigation"
Expand Down
8 changes: 1 addition & 7 deletions js/primary-nav-links.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import {
hamburgerButton,
btnTxt,
primaryNavigation,
siteNavigation,
} from "./globals.js"
import { hamburgerButton, btnTxt, siteNavigation } from "./globals.js"

export default function primaryNavLinks() {
const navLinks = document.querySelectorAll(".nav-link")
Expand All @@ -14,7 +9,6 @@ export default function primaryNavLinks() {
btnTxt.textContent = "Expand menu"
siteNavigation.classList.add("menu-hidden")
siteNavigation.classList.remove("menu-visible")
primaryNavigation.classList.remove("padding")
})
})
}

0 comments on commit 6318f18

Please sign in to comment.