Skip to content

Use Octicons v2 - #3147

Merged
fregante merged 1 commit into
masterfrom
octicons-v2
May 27, 2020
Merged

fregante merged 1 commit into
masterfrom
octicons-v2

Conversation

@fregante

Copy link
Copy Markdown
Member

GitHub.com just switched to the new icons even though they're not "stable" on npm for use to use. However I want to update RGH asap to preserve the illusion and make any improvements later

There are 2 issues:

  • bug.svg no longer exists: [Icon request] bug missing from v2 primer/octicons#430
    I avoided this issue by keeping the older v1 around just for this icon.
  • every filename now ends with -16.svg.
    I avoided this issue by using the last "v2" version without this requirement. This will have to be fixed once they're "stable"

@fregante fregante added the bug label May 27, 2020
@fregante
fregante marked this pull request as ready for review May 27, 2020 21:37
@fregante

Copy link
Copy Markdown
Member Author

Before / After

@yakov116

Copy link
Copy Markdown
Member

@fregante

fregante commented Jun 12, 2020 •

Copy link
Copy Markdown
Member Author

It might be worth trying to use the React package now, it looks like they dropped a lot of cruft and is likely treeshakeable https://www.unpkg.com/browse/@primer/[email protected]/dist/index.esm.js

The only config needed is to map react to dom-chef in webpack

@yakov116

Copy link
Copy Markdown
Member

Should I open an issue here to see if someone wants to take it? I am not able to do it.

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

Labels

Development

Successfully merging this pull request may close these issues.

2 participants