Closed (outdated)
Project:
Web Experience Toolkit
Version:
6.3.x-dev
Component:
WxT Bootstrap
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2020 at 16:03 UTC
Updated:
2 May 2026 at 16:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gdaw commentedComment #3
gdaw commentedComment #4
joseph.olstadGreat work! I will add this to our build immediately
Comment #5
gdaw commentedThis patch fixes the Axe tool errors but introduces new errors instead. Changing this ticket to Needs Work status.
Comment #6
gdaw commentedComment #7
joseph.olstadyes I'm also seeing these w3c issues caused by this patch, thanks!
Bad value “none” for attribute “role” on element “li”.Comment #8
gdaw commentedThis is the detail that another WCAG tool generates ... The "none" role is not a valid role for the "li" element with a parent of "ol" or "ul". The valid roles for "li" with a parent of "ol" or "ul" are: "listitem", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "presentation", "radio", "separator", "tab", and "treeitem". Visit https://www.w3.org/TR/html-aria/ for more information.
Comment #9
gdaw commentedComment #10
gdaw commentedComment #11
joseph.olstadComment #12
gdaw commentedWe've been using this patch for weeks now, and in combination with some other minor related patches. Together they work well so I will move this one to RTBC status like the rest of them, all lined up for next release.
Comment #13
gdaw commentedActually I would rather fix the single quotes in this patch.
Comment #14
gdaw commentedComment #15
joseph.olstad@gdaw, I believe you forgot to upload the new file, make sure to adjust the filename , it will be for comment 16 most likely
Comment #16
gdaw commentedComment #17
gdaw commentedThis patch adds roles to top-level dropdown links and resolves those Axe errors, plus this latest patch also adds role=menu to all ULs and role=menuitem to all menu links whether
<a href or {{ link }}Comment #18
joseph.olstadThanks, we're going to put this one through a battery of tests in the comming week.
So far it applies cleanly along with the others for the 8.x-1.25 version of wxt_bootstrap. We upgraded earlier this week so not yet up with the HEAD of dev as I know some new commits have gone in the past few days.
Comment #19
gdaw commentedNo issues or errors have been noticed during the past months, as hoped this patch has been harmless ... and the reduced noise from validation tools is very welcome.
Comment #20
joseph.olstadbeen running with this for a while.
Comment #21
sylus commentedCommitted and attributed thanks so much :D
Comment #23
liam morlandBecause of the
role="menu"inmenu-local-tasks.html.twig, WAVE is giving me errors like this:I think the solution would be to change menu-local-task.html.twig so that it has
role="menuitem"instead ofrole="presentation".I created a follow-up: #3588042: Fix or replace role="menu"
Comment #24
joseph.olstad@liam morland, thanks for the heads up. Do you have a patch?
Comment #25
joseph.olstadok ya, follow up in the #3588042: Fix or replace role="menu" I see your patch