Skip to content

Hi, I’m using the Astroid framework and I noticed an accessibility issue with the logo. #1344

@Maedchengestalter

Description

@Maedchengestalter

Hi, I’m using the Astroid framework and I noticed an accessibility issue with the logo.
Astroid outputs the logo as a link without any accessible name, for example:

<a class="astroid-logo" href="#">
    <img src="/logo.png">
</a>

Because the image has no alt text and the link has no aria-label, accessibility scanners and screen readers report an error:

“Link has no discernible text / missing accessible name.”

This violates WCAG/BITV guidelines and is a problem especially in Germany, where accessibility compliance is required by law.

Could you please consider adding support for:

  • a configurable alt text for the logo image, and/or
  • a configurable aria-label for the link

For example:

<a class="astroid-logo" href="#" aria-label="Homepage of My Site">
    <img src="/logo.png" alt="My Site Logo">
</a>

This would solve the issue and make the logo link fully accessible.

Thank you!

Originally posted by @Maedchengestalter in #1340

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions