title attributes for repository avatar images #251
Provide a way to set
title attributes associated to the avatar image of a project, and use them.
alt attribute would help with accessibility. It might be a single-line text input with placeholder Alternative text for screen readers.... When not set explicitly, the
alt attribute would be included but left empty (otherwise, from the ongoing spec for HTML: In a conforming document, the absence of the
alt attribute indicates that the image is a key part of the content but that a textual replacement for the image was not available when the image was generated.).
title attribute would help providing additional information, e.g. to set attribution when we use some icon that requires it (think of a CC-BY icon found somewhere). It might be a single-line text input with placeholder Tooltip shown when hovering the mouse on the image.... When not set explicitly, the
title attribute would not be included in the tag.
- GitHub does not seem to support custom avatars for projects.
- GitLab supports avatars but does not allow setting any
What is the need behind this proposition and which are the benefits?
When you say avatar image of a project are you refering to the repo avatar or to the org avatar? or both?
Sorry, I wrote too much in the issue itself, here are the benefits:
altattribute would help with accessibility.
titleattribute would help providing additional information, e.g. to set attribution when we use some icon that requires it (think of a CC-BY icon found somewhere).
Re repo avatar vs org avatar I'm referring to the repo avatar, because I can understand that putting a different
title on org/user avatars might become misleading.
I agree with the alt attribute, but would not encourage to use the title attribute.
Mobile users wouldn't have a way to access its content. The tooltip behaviour is not guaranteed by the spec.
Relying on the title attribute is currently discouraged as many user agents do not expose the attribute in an accessible manner as required by this specification (e.g., requiring a pointing device such as a mouse to cause a tooltip to appear, which excludes keyboard-only users and touch-only users, such as anyone with a modern phone or tablet).
The repo avatar is placed aside the repo name and provide the same name via its title attr, so its redundant from a screen reader point of view and would be better to remove it from aria tree because is just decorative (as any logo in general). An empty alt do that also, but avoids to show an alternative text in case the image couldn't be downloaded for sight people. In any case, the alternative text should be "repository logo".
Apart from redundance, both elements are inside a container dedicated to the title, so add more information at that level is counterproductive for a screen reader.
Because of above statements, I wouldn't implement this feature.
If anybody have strong arguments in favor of implement these features, please comment for considering.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?