#61795 closed defect (bug) (invalid)
Lighthouse shows invalid ARIA role error for role="group"
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Toolbar | Keywords: | has-patch has-testing-info close |
Focuses: | ui, accessibility | Cc: |
Description
I've found the Accessibility
role error in the admin bar.
Ref: https://tinyurl.com/2cp6mj4c
As per the ARIA
docs suggestion, we can fix it by adding a none
role in the li tag.
Docs: https://dequeuniversity.com/rules/axe/4.9/aria-allowed-role
Attachments (1)
Change History (8)
#2
@
9 months ago
- Component changed from Administration to Toolbar
- Summary changed from Accessibility: Lighthouse show in valid ARIA role error. to Lighthouse shows invalid ARIA role error for role="group"
Related: #60919
#3
@
8 months ago
- Keywords close added
The test in Lighthouse is incorrect; the group
role is permitted on list items as long as the parent list does *not* have the list
role. The parent node in this case is a ul
with role="menu"
, so it is correct.
This is correct per the HTML ARIA specifications for `li`.
Recommend closing.
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
8 months ago
#5
@
8 months ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
Closing as invalid following discussion in the accessibility bug scrub.
#6
@
4 months ago
I recently face this, but as read above mentioned. Now How to fix this? Is this forum closed?
HTML <a href="https://buyamazononlineshop1023.dreamhosters.com/"></a> <a href="https://buyamazononlineshop123.dreamhosters.com/"></a> <a href="https://buyamazononlineshop223.dreamhosters.com/"></a> <a href="https://buyamazononlineshop323.dreamhosters.com/"></a> <a href="https://buyamazononlineshop423.dreamhosters.com/"></a> <a href="https://buyamazononlineshop523.dreamhosters.com/"></a> <a href="https://buyamazononlineshop623.dreamhosters.com/"></a> <a href="https://buyamazononlineshop723.dreamhosters.com/"></a> <a href="https://buyamazononlineshop823.dreamhosters.com/"></a> <a href="https://buyamazononlineshop923.dreamhosters.com/"></a> <a href="https://onlinedigitalbusiness.dreamhosters.com/"></a> <a href="https://sixdollar1023.dreamhosters.com/"></a> <a href="https://sixdollar123.dreamhosters.com/"></a> <a href="https://sixdollar223.dreamhosters.com/"></a> <a href="https://sixdollar323.dreamhosters.com/"></a> <a href="https://sixdollar423.dreamhosters.com/"></a> <a href="https://sixdollar523.dreamhosters.com/"></a> <a href="https://sixdollar623.dreamhosters.com/"></a> <a href="https://sixdollar723.dreamhosters.com/"></a> <a href="https://sixdollar823.dreamhosters.com/"></a> <a href="https://sixdollar923.dreamhosters.com/"></a>
Test Report
I have tested latest patch and it is working as expected. https://core.trac.wordpress.org/attachment/ticket/61795/61795.patch
Environment
Expected Results
✅ Aria role error has been fixed.
Screenshot (Before Patch) - https://prnt.sc/ys7Sq7EI92PX
Screenshot (After Patch) - https://prnt.sc/34-zMvx9-wVn