Skip to content

Don't use aria-label #2

@MatzeKitt

Description

@MatzeKitt

The current snippet uses aria-label for some links. As I just read today, this is not recommended (and even violates WCAG SC 2.5.3 Label in Name), as per: https://adrianroselli.com/2026/01/barriers-from-links-with-aria.html

Can we replace this with something better? Since we’re outside of WordPress context, screen-reader-text class cannot be used. Maybe inline CSS, which does the same?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions