Inserter menu ARIA roles and attributes #3617
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Milestone
Splitting this out from #1823
The inserter is now in a stable enough state but still uses ARIA roles and attributes that where added in a first implementation, when the block types were presented in a sort of vertical list.
Testing with screen readers, it appears there's the need to make some adjustments. I think the roles menu and menuitem can stay, but there's probably the need to "flatten" the ARIA tree and use some role="presentation" on other elements. This would require some testing.
Nooticed so far:
Seems there's no consistency in the (wrong) number of items that gets announced:
in this case, there are 3 items but then NVDA announces "n of 4"
and in this case, there are 3 items but then NVDA announces "n of 7"
The text was updated successfully, but these errors were encountered: