- This topic has 7 replies, 2 voices, and was last updated 10 months ago by Tom.
May 2, 2020 at 4:47 am #1265965Michael Andersen
I ran a test for my website using GP theme and GP Premium.
I got this result:
“We could not detect any ARIA landmarks on your page. Improve navigation and make your site more accessible by adding ARIA landmark roles.”
Elsewhere I read that support of this was a god thing and should be supported by the Theme in use.
Does GP theme supporty ARIA landmark roles?
MichaelMay 2, 2020 at 9:22 am #1266451TomLead DeveloperLead Developer
In most cases, we use HTML5 elements like
navwhich are landmarks themselves.
However, it is planned to add aria landmarks in cases where there is more than one
navelement on the page 🙂March 24, 2021 at 6:04 pm #1708756Elliott
This won’t exactly solve the issue because “All page content must be contained by landmarks”
Currently GeneratePress does not meet this simple guideline.March 25, 2021 at 11:46 am #1709886TomLead DeveloperLead Developer
I would prefer to stick with the HTML5 landmarks and add
aria-labelattributes where needed to distinguish between them if needed. This will be done in GP 3.1.0.March 25, 2021 at 12:02 pm #1709898Elliott
I agree, Tom. HTML5 landmarks will work just fine, however we need to make sure the landmarks contain everything on the page. For instance, right now the <header> is wrapped in a div container.March 26, 2021 at 9:54 am #1711080TomLead DeveloperLead Developer
It shouldn’t by default, but it can be if the header is merged.
Would that be an issue? If so, do you have a link where I can read more on that?March 26, 2021 at 12:36 pm #1711218Elliott
The link posted earlier should cover it: https://dequeuniversity.com/rules/axe/3.5/region?application=AxeChromeMarch 27, 2021 at 10:35 am #1712294TomLead DeveloperLead Developer
Got it, thanks!
This would likely be very hard to achieve without affecting/breaking existing sites, but we’ll do our best. At the very least we’ll be adding more
aria-labelattributes throughout to make things easier on screen readers.
- You must be logged in to reply to this topic.