Skip to content

Remove Redundant "Link to" in Social Icons aria-label #20665

Closed

Description

@mrwweb

At present, a social link looks like this:

<a href="https://profiles.wordpress.org/" aria-label="Link to WordPress">
  <svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
    <path d="..."></path>
  </svg>
</a>

I believe "Link to" in the default aria-label can be removed. Because it's a link element, that is redundant information.

Activity

  1. Soean commented on Mar 5, 2020

    @Soean
    Member

    It was added in #18651, see the issue #18620 why it was added.

  2. mrwweb commented on Mar 5, 2020

    @mrwweb
    Author

    To clarify: Having an aria-label is good. What I'm saying is that the specific words "Link to" in "Link to Twitter" or "Link to Facebook" in the default text are redundant.

    A screen reader will say something like "{aria label}. Link.", so in this case it would say "Link to Facebook. Link." Therefore, the aria-label should just say "Twitter" or "Facebook".

    Is that clearer?

  3. added
    [Block] SocialAffects the Social Block - used to display Social Media accounts
    on Mar 6, 2020
  4. 0aveRyan commented on Apr 3, 2020

    @0aveRyan
    Contributor

    @mrwweb I've validated and opened a PR to address this, thanks for the report!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Accessibility FeedbackNeed input from accessibility[Block] SocialAffects the Social Block - used to display Social Media accounts

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions