Skip to content

Commit

Permalink
Fix typos in header.js
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Oct 22, 2024
1 parent 253c3dc commit bbac682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/components/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Header {
*
* Closes the mobile menu and updates accessibility state.
*
* Remvoes the margin-bottom from the navigation
* Removes the margin-bottom from the navigation
*/
closeMobileMenu() {
this.menuIsOpen = false
Expand Down Expand Up @@ -115,7 +115,7 @@ class Header {
this.navigation.style.marginBottom = `${marginBody}px`
this.mobileMenuToggleButton.setAttribute('aria-expanded', 'true')

// add event listerer for esc key to close menu
// add event listener for esc key to close menu
document.addEventListener('keydown', this.handleEscapeKey.bind(this))

// add event listener for close icon to close menu
Expand Down Expand Up @@ -145,7 +145,7 @@ class Header {
* If the available space is greater than the current breakpoint,
* remove the mobile menu toggle button and move the first item in the
*
* Additionaly will close the mobile menu if the window gets resized
* Additionally will close the mobile menu if the window gets resized
* and the menu is open.
*/

Expand Down

0 comments on commit bbac682

Please sign in to comment.