Skip to content

Instantly share code, notes, and snippets.

@Danetag
Last active June 25, 2018 21:25
Show Gist options
  • Select an option

  • Save Danetag/9701ebc44457494c371ab2a8d7cacfb3 to your computer and use it in GitHub Desktop.

Select an option

Save Danetag/9701ebc44457494c371ab2a8d7cacfb3 to your computer and use it in GitHub Desktop.
...
render() {
const { openedMenu, onOpenMenu, state } = this.props;
return <button
id="menu-hamburger"
aria-controls="menu-mobile"
aria-expanded={openedMenu}
aria-haspopup={true}
className={styles.hamburgerIcon}
onClick={onOpenMenu}
>
Open menu
</button>
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment