[Feature] Presskit SVGs doesn't work well with non-white backgrounds

Open
#1,314 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
html
Domain
design, frontend

Research direction

Start with the License chooser HTML output and compare its referenced Presskit icons, such as https://mirrors.creativecommons.org/presskit/icons/by.svg, with the transparent icons in src/svg/cc/icons. Confirm where the Presskit assets are maintained; done means transparent-center variants are available, with chooser defaults changed only if that is included in scope.

Written by the indexing model from the issue text.

Description

✨ goal: improvement 💻 aspect: code 🟩 priority: low 🧹 status: ticket work required

Problem

Presskit SVGs don't work well with non-white backgrounds.

Image
Current behavior on the left and desired behavior on the right.

Description

The SVGs used by the HTML produced by the "License chooser" have a solid white background inside the circle.
The icons are hosted here and are part of the "Presskit" e.g.:
https://mirrors.creativecommons.org/presskit/icons/by.svg

The white background icons from "Presskit" are inconsistent with the icons here (which are transparent):
https://github.com/creativecommons/vocabulary/tree/main/src/svg/cc/icons

I suggest having an extra set of icons in the "Presskit" with transparent centers.
It is probably a good idea to leave the current ones as is for backwards compatibility.
Maybe even use these in the "License chooser" by default moving forward.

Alternatives

Leave everything "as is", but having icons with transparent backgrounds available, we get a web that looks better 😅

Additional context

Maybe also provide SVGs with white "fill color" for dark (themed) websites.

Implementation

  • I would be interested in implementing this feature. (but I would need some pointers as to where I can find this "Presskit")
Dominant language
HTML
Stars
187
Forks
243
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from creativecommons/creativecommons.org

All issues in creativecommons/creativecommons.org

Similar issues

More Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.