You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This uses a details element to allow for the navigation to be hidden
The site title is displayed in the summary
When not in a mobile view, the user cannot collapse the details thus making the navigation always visible
If the user has JavaScript disabled then a noscript is used to tell the user to manually collapse the navigation if they're in a mobile view.
The reason I bring this up as a discussion is because I wanted to get y'all's opinion on how this would behave with assistive technologies and if this conforms to the HTML5 technical specifications.
I feel like it does, but I am doing some stuff like with the site title and the details:is(:open) that make me second guess myself.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've been toying around with the idea of creating a collapsible navbar with minimal changes and this is what I came up with.
Demo: https://jsfiddle.net/1hyqmaxL/
There are a couple of features:
The reason I bring this up as a discussion is because I wanted to get y'all's opinion on how this would behave with assistive technologies and if this conforms to the HTML5 technical specifications.
I feel like it does, but I am doing some stuff like with the site title and the
details:is(:open)that make me second guess myself.Beta Was this translation helpful? Give feedback.
All reactions