Open
ethanpil
opened this issue 4 years ago
•
14 comments
The<nav> tag seems like a great candidate for water.css as it is fully supported by all browsers and can be an easy way to create some navigational elements in the page. By default it could use some work, even in water.css!
Is this something you are interested in working on for a future version, or would accept a PR for?
What's the "semantic HTML" way of using <nav>? Probably one or more <ol> or <ul> containing <li><a href="..."></li>, right? I'm not sure if there's weirder valid ways to use it though 🤷♂️ The common case is probably fine
It's not necessary for all links to be contained in a
A document may have several elements, for example, one for site navigation and one for intra-page navigation. aria-labelledby can be used in such case to promote accessibility, see example.
The changeset on the pull request will probably need to be marked as a major change
...potentially with a label for the navigation landmark, and I've also seen the aria-current="page" attribute to specify the currently active link/page. Here's the authoring example from ARIA 1.2: https://www.w3.org/TR/wai-aria-practices-1.2/examples/landmarks/navigation.html
So we would probably need to make sure that a nav implementation would be generic enough to handle both from both a styling perspective and a design perspective.
Nested lists/navs might be out of scope but it would be cool if there was a generic way to support them.
Hey @kognise What's the status of this feature request? Can you provide an update or roadmap? It would be great to get a few more semantic styles in like this into water.css