Adrian Roselli
Read post

Link + Popover Navigation

A practical guide to building accessible navigation menus using the native HTML popover API, updating a 2019 pattern that relied on ARIA disclosure widgets. The approach uses a link plus a button trigger with `popovertarget`, eliminating the need for JavaScript to show/hide submenus. Key benefits include free Esc and click-to-close support, automatic `aria-expanded` state, and proper semantics. The post covers HTML structure, button naming with `aria-labelledby`, focus order considerations, CSS anchor positioning challenges across browsers, and styling tips including forced-colors and logical properties support.

    #html#accessibility
Jul 09•6m read time•From adrianroselli.com
Post cover image
Table of contents
popover vs. Disclosure Widgets # anchorThe Pattern # anchorPattern History # anchorWrap Up # anchorTagsOther PostsNo comments? Be the first!
861 Impressions
Adrian Roselli's image
Adrian Roselli

Adrian Roselli is a web developer, accessibility advocate, and expert in web standards. Readers can ...

37 Followers

•

199 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard