Replace <div> tags under the <menu> tag with <li> tags using DevTools.
Expected behavior
As per MDN, menu should be treated similarily to <ul>, and thus should contain <li> tags.
Desktop (please complete the following information):
OS: Windows
Browser: Edge
Version: 122
Additional context
Another alternative is to use ARIA role="list", which is the implicit role for <menu>, along with role="listitem".
With that said, I realize the specc is not always the right way from the users perspective. If this was a concious decision, please let me know and why if possible.
You are right. Reverted it back to div. I might get refactored in future but not at the moment. Fixing the markup would require a rethinking of the overflow behaviour.
Describe the bug Menu items in cmdbar are a list of
div
tags. If they are replaced with<li>
tags the style is broken with visible list bullets.To Reproduce Steps to reproduce the behavior:
<div>
tags under the<menu>
tag with<li>
tags using DevTools.Expected behavior As per MDN, menu should be treated similarily to
<ul>
, and thus should contain<li>
tags.Desktop (please complete the following information):
Additional context Another alternative is to use ARIA
role="list"
, which is the implicit role for<menu>
, along withrole="listitem"
.With that said, I realize the specc is not always the right way from the users perspective. If this was a concious decision, please let me know and why if possible.