- This topic has 13 replies, 4 voices, and was last updated 3 years, 1 month ago by
Leo.
-
AuthorPosts
-
January 20, 2022 at 3:35 am #2087000
Joel
Hello, our accessibility software has picked up some issues relating to ‘Marking navigation as lists – WCAG A 1.3.1’ – it says that related links should be written semantically as a list using “ul” or “ol” tags. I’ve included a link to our blog page as this is a good example of some of the occurrences our accessibility software has highlighted…
1. at the top of the page there is a top bar displaying social icon links created using GenerateBlocks buttons in an element
2. the category links below the blog posts
3. the pagination nav links at the bottom of the blog archive
4. the social icon links in the footer…again these are created using GenerateBlocks buttons in an elementIs there any way of marking these as lists using “ul” / “li” tags without reverting to converting them to HTML?
Many thanks,
Joel
January 20, 2022 at 6:20 am #2087166David
StaffCustomer SupportHi there,
there is no option in GenerateBlocks to use List HTML in the markup.
If you use GenerateBlocks Pro then you can add your own html attributes eg.https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/list_role
And this doc explains how:
https://docs.generateblocks.com/article/custom-attributes/
And that same method could be applied to a Block Element – Post Meta, to replace the themes meta:
https://docs.generatepress.com/article/block-element-post-meta-template/
To be honest i have never seen the terms being flagged before, the absence of Lists i have only seen being flagged when the parent element is a NAV
January 20, 2022 at 7:08 am #2087238Joel
Thanks David I’ve just tried this as we use GB Pro but I don’t see an option to add the custom attribute to the button wrapper – am I missing something?
And if I can get it working, can the same method also be applied to the archive navigation using the Block Element – Archive Navigation?
Thanks
January 20, 2022 at 7:26 am #2087266David
StaffCustomer SupportIs that Paging Nav below the blog / archives ?
January 20, 2022 at 7:30 am #2087268Joel
Yes it is, the accessibility software identifies the css class “nav-links”
…and sorry I edited my previous reply just before you replied – I’ve just tried adding the list attribute as we use GB Pro but I don’t see an option to add the custom attribute to the button wrapper – am I missing something?
Thanks again
January 20, 2022 at 8:17 am #2087490David
StaffCustomer SupportI knew something was nagging me when i replied and it was this:
https://github.com/tomusborne/generateblocks-pro/issues/54
The Grid Container missing attributes has been added to our milestone for the next update.
If you don’t mind waiting for the next release ?Nav-links – never had that one raised before either.
There is a filter for that here:So you can overwrite its markup if necessary.
January 20, 2022 at 9:06 am #2087573Joel
Thanks David, no probs I’ll revisit following the next GB Pro release
January 20, 2022 at 9:38 am #2087615David
StaffCustomer SupportAwesome – thanks for that.
Out of interest what Accessibility tools are you using ?
January 20, 2022 at 9:49 am #2087634Joel
We’re using Silktide – https://silktide.com
It’s great…as a Government website we need to be on top of it!
January 20, 2022 at 9:51 am #2087636David
StaffCustomer SupportThank you for sharing that – we’ll take a look 🙂
August 2, 2022 at 11:58 am #2301131melonbird
Never mind – it was a plugin issue. Everything is working.
August 2, 2022 at 12:11 pm #2301150Leo
StaffCustomer SupportAny chance you can open a new topic for the question?
Please provide a link to your site as well.
Thanks!
August 2, 2022 at 12:41 pm #2301168melonbird
Sorry – it was a plugin issue and it’s all working now.
August 2, 2022 at 2:13 pm #2301232Leo
StaffCustomer SupportGlad to hear.
-
AuthorPosts
- You must be logged in to reply to this topic.