Skip to content

Use the same icon for clipboard button that crates.io itself uses #1394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 13, 2021

Conversation

notriddle
Copy link
Contributor

@notriddle notriddle commented May 4, 2021

image

@jyn514
Copy link
Member

jyn514 commented May 5, 2021

Hmm, I'm not a giant fan of the icon rustdoc uses - maybe we could make it a clipboard for both instead? https://fontawesome.com/icons/clipboard?style=solid

cc @GuillaumeGomez

@GuillaumeGomez
Copy link
Member

We don't use fontawesome in rustdoc, so the only thing I can suggest is replacing the rustdoc one with a svg so then we can use the same vector image in docs.rs. How does it sound?

@jyn514
Copy link
Member

jyn514 commented May 5, 2021

Yes, that sounds good :) I just think it should be a clipboard icon or something similar.

@GuillaumeGomez
Copy link
Member

I don't like much the current icon so very open to changes. :)

@notriddle
Copy link
Contributor Author

I don't like the current icon very much either, but I like that it's a unicode character instead of an SVG. Less overhead.

How about \u{1f4cb}\u{fe0e}, the text presentation mode of the clipboard emoji? 📋︎

@GuillaumeGomez
Copy link
Member

The current font rendering on mac is quite bad and broken in fact, which is why I suggested an SVG. Simpler to have a unified rendering.

@jyn514
Copy link
Member

jyn514 commented May 5, 2021

That seems pretty complicated for a button :/ what do you mean by bad and broken?

@notriddle
Copy link
Contributor Author

So, are we going to import an SVG copy icon into rustdoc, or use the \u{1f4cb}\u{fe0e} icon in both?

@GuillaumeGomez
Copy link
Member

I'd prefer an SVG icon like we do for other icons in rustdoc. Also cc @jsha

@jsha
Copy link
Contributor

jsha commented May 9, 2021

See also rust-lang/rust#84639, where @rukai helpfully posted a screenshot of how crates.io does it. I think it's really valuable to harmonize the icon and the interaction between crates.io, doc.rust-lang.org, and docs.rs. And the crates.io icon is an SVG! 🎉

@notriddle notriddle changed the title Use the same icon for clipboard button that rustdoc itself uses Use the same icon for clipboard button that crates.io itself uses May 9, 2021
@notriddle
Copy link
Contributor Author

@jsha @GuillaumeGomez

Okay, here's the crates.io icon.

@GuillaumeGomez
Copy link
Member

cc @Nemo157 (since it's front-end ;) )

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request May 10, 2021
…o157

Use an SVG image for clipboard instead of unicode character

Linked to rust-lang/docs.rs#1394.

cc `@jsha`
r? `@Nemo157`
This way, sighted users can see the label, too.
@Nemo157 Nemo157 merged commit b7e1eea into rust-lang:master May 13, 2021
@notriddle notriddle deleted the rustdoc-clipboard-icon branch August 14, 2022 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants