HTML element to use for header
Protected
_$rootPrivate
$menuPrivate
$menuPrivate
menuRemember the open/closed state of the nav so we can maintain it when the screen is resized.
Private
mqlA global const for storing a matchMedia instance which we'll use to detect when a screen size change happens. We rely on it being null if the feature isn't available to initially apply hidden attributes
Static
elementStatic
moduleName for the component used when initialising using data-module attributes.
Protected
$rootProtected
Returns the root element of the component
Private
checkPrivate
Sync menu state
Uses the global variable menuIsOpen to correctly set the accessible and visual states of the menu and the menu button. Additionally will force the menu to be visible and the menu button to be hidden if the matchMedia is triggered to desktop.
Private
handlePrivate
Handle menu button click
When the menu button is clicked, change the visibility of the menu and then sync the accessibility state and menu button state
Private
setupPrivate
Setup viewport resize check
Static
check
Service Navigation component