by montroser · 5y ago · 0 comments
Not really, for either menus or non-modal dialogs:
“The details element represents a disclosure widget from which the user can obtain additional information or controls.”
https://html.spec.whatwg.org/multipage/interactive-elements....
Personally I’d rather that the toggle was available as an activation behaviour, and this is an open issue for the HTML standard. https://github.com/whatwg/html/issues/3567