Accessibility Fix for Featured Images as Links in Latest Posts Block #36250
Labels
[Block] Latest Posts
Affects the Latest Posts Block
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
As mentioned in #24548 (comment)
There is an accessibility issue with the "add link to featured image" option within latest posts block -- in that "Links do not have a discernible name" & should be updated to include an aria-label="The post title" in there.
This option:
Produces accessibility warnings in Lighthouse (etc) "Links do not have a discernible name" - as our featured image links don't tell screen readers what the link is.
What is your proposed solution?
I will add a branch / PR with the correct aria-label (I have already got this working!) - all that's needed is the title (which is used later on) variable to be declared a little earlier, then it can be included in this block.
The text was updated successfully, but these errors were encountered: