Skip to content

Ambiguous link texts found #47

Closed

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

  1. added
    bug
    on Sep 17, 2026
  2. added a commit that references this issue on Sep 17, 2026
    adab85b
  3. henriqueiamarino commented on Sep 23, 2026

    @henriqueiamarino
    Contributor

    Thanks for the thorough testing, @carolinan. Both are real, and I have two proposed solutions:

    Comments CTA: the binding is ours, so it will append the post title as screen-reader text: the visible label stays as designed, and the accessible name becomes unique per post ("Join the conversation — Post title").

    Post dates: the post date block offers no screen-reader affordance when linked, so the theme will handle it with a small render filter that appends the post title as screen-reader text inside the date link. Every linked date in the theme gets a unique name, and the visible design stays the same. This one is probably worth raising on the block itself at some point, since it affects any theme that links dates.

  4. carolinan commented on Sep 23, 2026

    @carolinan
    ContributorAuthor

    Now we have four open pull requests for the same issue.
    It seems like we should decide on the exact text first before writing more code.

  5. carolinan commented on Sep 23, 2026

    @carolinan
    ContributorAuthor

    I don't think each post needs four to five links:
    featured image
    post title
    date
    comment link 1
    comment link 2

    If you are navigating with a keyboard that is a whole lot of steps/clicks for an archive page.
    (unrelated to screen-reader usage)

  6. henriqueiamarino commented on Sep 23, 2026

    @henriqueiamarino
    Contributor

    @carolinan, my fixes will be dropped; sorry about that. I proposed a solution without the right information about the work already in flight, so I am stepping away from this one.

  7. carolinan commented on Sep 24, 2026

    @carolinan
    ContributorAuthor

    We are going to have the same problem with the date in the sidebar that shows the single posts and in the "keep reading" section below the post content. I think we have to fix it in Gutenberg.,

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

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions