From bbac682fa78265a38bd36c9ae7c44f8c88e2ec53 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Tue, 22 Oct 2024 16:41:27 +0100 Subject: [PATCH] Fix typos in header.js --- packages/components/header/header.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/components/header/header.js b/packages/components/header/header.js index a4520c9aa..b5cedb394 100644 --- a/packages/components/header/header.js +++ b/packages/components/header/header.js @@ -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 @@ -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 @@ -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. */