Skip to content

ImageScale.tag populates alt and title with same content #162

Description

@thet

According to WAI standards from my understanding, the alt and title should not contain the same content - both are read aloud by screen readers.

In plone.namedfile.scaling.ImageScale.tag the alt and title attribute are set to the image title (self.title)‌ if both are empty: https://github.com/plone/plone.namedfile/blob/8.0.0a1/src/plone/namedfile/scaling.py#L157-L160

This is wrong and should be fixed.

There is the alt-tag-behavior issue/PR plone/plone.app.contenttypes#700 which aims to add a behavior for images to edit alt tags. We should jump on that and fix this issue together with the other one.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions