mirror of https://github.com/sveltejs/svelte
fix: treat menu element like ul/ol for a11y role checks (#17638)
* treat menu element like ul/ol for a11y role checks The <menu> element has the same implicit role (list) as <ul> and <ol>, so it should receive the same treatment in a11y checks: - Allow <menu role="list"> without redundant role warning (CSS list-style:none can remove semantics, role restores them) - Allow <menu> with interactive roles like menu, menubar, radiogroup, tablist, tree, treegrid (same exceptions as ul/ol) Fixes #8529 * changeset --------- Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>pull/17644/head
parent
4453e4895d
commit
f71a6813b7
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: treat `<menu>` like `<ul>`/`<ol>` for a11y role checks
|
||||
Loading…
Reference in new issue