DEV Community

Discussion on: Building a sexy, mobile-ready navbar in any web framework

 
bholmesdev profile image
Ben Holmes

Fair! I definitely agree it would be valid. However, given the reason screenreader users enjoy list groupings, it wouldn't make much sense to exclude the homepage link for that list.

Take the L shortcut for finding lists as an example. If a user were to find our new dropdown element in our nav, they may assume these are all the links they can navigate to, without clear direction on getting back to the homepage. At that point, there's not a lot of benefit to adding that list element for a11y. It also adds some complexity to our markup since we need to style both the li and the link inside the li (been burned by this before).

It's all bike-sheading at this point πŸ˜†Just thinking that uls wouldn't add a lot of value here, and it would make the dev process a little more complex πŸ€·β€β™€οΈ