Use JS to add determined classes to the elements that interact with the user in the navigation (Toggles, Slide down/up). And show by default the navigation and all the items open in case there is no JS present.

To achieve this behaviour, this is the list of items that must be done:

- The button to trigger the navigation, needs to be added via JS and not hardcoded in the HTML (The reason behind this is that the button will do nothing if JS is not present, so there is no reason for having it).
- Show the navigation default opened, and if JS is present, a class must be added to it. That class will make the navigation to have the current behaviour it has right now.

CommentFileSizeAuthor
#9 olivero-no-js--width-1000px-1199px.png252.54 KBshaal

Comments

vulcanr’s picture

Edited

vulcanr’s picture

Edited

vulcanr’s picture

vulcanr’s picture

Status: Active » Needs review
vulcanr’s picture

Status: Needs review » Needs work
vulcanr’s picture

shaal’s picture

Status: Needs review » Needs work
shaal’s picture

shaal’s picture

StatusFileSize
new252.54 KB

There's a visual issue of giant search when JS is off, and the resolution is between 1000px and 1199px:

vulcanr’s picture

Hm now this triggers something totally different in regards to the navigation. When JS is disabled, there is no way to get the Search input

finnsky’s picture

Assigned: vulcanr » Unassigned
Status: Needs work » Needs review
vulcanr’s picture

Status: Needs review » Reviewed & tested by the community

I reviewed it it works very good, you nailed the issue I had before with the search and yeah, it's on a weird place.

Locally I duplicated some of the items with child elements in the menu and they work good aswell.

Good job on this one. I'll leave this for Mike to review it.

mherchel’s picture

Version: » 8.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.