Skip to content

Badge alt-text appears to be part of crate title #1241

Closed
@SamWhited

Description

@SamWhited

If a badge does not load on crates.io the alt-text is shown but it appears to be part of the surrounding content. It should be distinguished in some way (eg. a smaller colored link). For example, imagine if both badges in the following screenshot had failed to load:

imagetitle

Activity

sgrif

sgrif commented on Jan 19, 2018

@sgrif
Contributor

This is the behavior of the browser, not crates.io. I don't believe we have any control over this.

SamWhited

SamWhited commented on Jan 19, 2018

@SamWhited
Author

Could the badges not be moved into spans that are styled differently? Then if the image fails to render they wouldn't appear to be a part of the title.

nox

nox commented on Jan 22, 2018

@nox

This is definitely in control of crates.io, the badges are in the same <div class=info> as the crate name. Btw, why are those using div elements instead of title-related ones?

kornelski

kornelski commented on Aug 20, 2018

@kornelski
Contributor

Text styles set on <IMG> affect rendering of the alt text.

Turbo87

Turbo87 commented on Apr 28, 2020

@Turbo87
Member

closing this issue due to #2440 being merged :)

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kornelski@nox@Turbo87@carols10cents@SamWhited

        Issue actions

          Badge alt-text appears to be part of crate title · Issue #1241 · rust-lang/crates.io