Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Simplify nav submenu markup and improve no-JS behavior #479

Closed
wants to merge 3 commits into from

Conversation

westonruter
Copy link
Member

@westonruter westonruter commented Nov 4, 2018

Follow up on #337.

  • Eliminate unnecessary duplication of submenu-expand elements (one for desktop and one for mobile).
  • Eliminate unnecessary use of link for mobile submenu-expand and menu-item-link-return elements, along with its unnecessary onclick attribute.
  • Reduce number of CSS rules due to simplified markup.

👉 These changes improve the nav menu experience when JavaScript is turned off in the browser.

Copy link
Collaborator

@allancole allancole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all the continued work on this menu Weston! I ended up merging the changes in this PR into #485 which includes some additional fixes for accessibility and non-click interactions. Since the code is already in there and working, we may end up closing this PR in favor of the other.

@westonruter
Copy link
Member Author

Yes, I saw that you merged my commits over there. So that's great.

@allancole
Copy link
Collaborator

Closing this since it’s merged into #485

@allancole allancole closed this Nov 9, 2018
@kjellr kjellr deleted the update/nav-menu-markup branch November 30, 2018 15:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants