-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Octicons v2 #11889
Comments
The npm package |
It still seems to have non-square 16px-based SVGs in the $ cat node_modules/@primer/octicons-v2/build/svg/repo.svg
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16"><path fill-rule="evenodd" d="M4 9H3V8h1v1zm0-3H3v1h1V6zm0-2H3v1h1V4zm0-2H3v1h1V2zm8-1v12c0 .55-.45 1-1 1H6v2l-1.5-1.5L3 16v-2H1c-.55 0-1-.45-1-1V1c0-.55.45-1 1-1h10c.55 0 1 .45 1 1zm-1 10H1v2h2v-1h3v1h5v-2zm0-10H2v9h9V1z"/></svg> |
Actually, it seems https://github.com/primer/octicons/releases/tag/v10.0.0 Notably, many renames. |
Yes, along with renames there are some missing icons; sometimes icons with same name is different; for example old
https://primer.style/octicons/north-star-16 The changelog confirms that internal repo icon is now replaced by normal repo icon, so that means that GH just positions org avatar on top of it. They did that before too, but now there is no way for us to differentiate it without placing avatar; pretty annoying. |
Given that we are setting size on some icons to 32, it might be good idea to use 16px set exclusively. |
|
just a question why are we switching to Octicons v2 - are the old icons not working for a specific usecase anymore? |
It's just a version bump on npm dependency. Specifically from 9.x to 10.x They are called v2 because of radical change in style but that does not mean that both versions are maintained. |
While I don't agree with every new icon, I think they are an overall improvement. And yes, remaining on old icons would mean we'd have to lock down the dependency and can't benefit from new additions either. |
Besides a few renames, these icons are no longer present in v10 that we've used, so had to change: file-symlink-directory -> file-submodule internal-repo -> repo repo-force-push -> repo-push repo-template-private -> repo-template Fixes: go-gitea#11889 Ref: https://github.com/primer/octicons/releases/tag/v10.0.0
* Update Octicons to v10 Besides a few renames, these icons are no longer present in v10 that we've used, so had to change: file-symlink-directory -> file-submodule internal-repo -> repo repo-force-push -> repo-push repo-template-private -> repo-template Fixes: #11889 Ref: https://github.com/primer/octicons/releases/tag/v10.0.0 * add custom sliders svg for removed octicon-settings * apply suggestion * fix triangles and use play on admin dashboard * add custom mirror svg * add missing build files * unify custom svgs * move to octicon-repo-clone to gitea-mirror * use octicon-x on conflicts * tweak timeline icons * tweak comment buttons * update settings icon to octicons v1 * switch to octicon-mirror and octicon-tools * replace two wiki buttons with octicons * remove whitespace in svg sources * Fix filepath basename on Windows for SVG bindata (#12241) * move octicons to devDependencies * move back to dependencies * move svgo to devDependencies again Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Octicons v2 (v10.0.0) have been released https://primer.style/octicons/
Will require some work during upgrade; there are inconsistencies with how icons are used now and certain are missing. Some examples:
Interestingly they decided to keep one for public templates :\
The iconset now contains both 24px and 16px icons, all of them have identical width however not all icons exists in 24px set!
Other issues might be present but were not catched yet, feel free to add your observations here.
The text was updated successfully, but these errors were encountered: