Skip to content

Ambiguous link texts found #47

Description

@carolinan

As part of the accessibility-ready testing, 'No ambiguous link text', we need to verify if links have unique accessible names.
https://wpaccessibility.org/docs/topics/theme-guidelines/no-ambiguous-link-text/

On the index, in the loop where the latest posts show, these links do not have a unique accessible name:

The post date
The post date is linked to the post. If there are multiple posts published on the same day, they have different link targets but the same accessible name. The block does not add a screen reader text or similar, so only the visible link text is used here.

Screenshot of the accessibility tree in Chrome:
screenshot showing that the accessible name is August 25, 2026.

The "Join the conversation" and "Be the first to comment" link to the comments area
This is the custom block binding tied to the paragraph, called Comments CTA.
These links lead to the reply and comment area respectively and can appear multiple times when comments are open.
They have different link targets but the same accessible names.
The block does not add a screen reader text or similar, so only the visible link text is used here.

Screenshot of the accessibility tree in Chrome:
screenshot showing that the accessible name is Join the conversation.

(Note that the comments link block, the one that shows "No comments" or the number of comments, already adds a screen reader text, so it does not need to be changed.)

To test this, enable comments, add a few posts to the installation if you need, and then view the index.
I did not make any template changes to the index/home/blog.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions