Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
roshaanbajwa committed Oct 6, 2023
1 parent 52a09e2 commit c83375d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ class Header {
*/

openMobileMenu() {
const marginBody = this.mobileMenu.offsetHeight
this.menuIsOpen = true
this.mobileMenu.classList.remove('nhsuk-header__drop-down--hidden')
const marginBody = this.mobileMenu.offsetHeight
this.navigation.style.marginBottom = `${marginBody}px`
this.mobileMenuToggleButton.setAttribute('aria-expanded', 'true')

Expand Down

0 comments on commit c83375d

Please sign in to comment.