-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Misc icon tweaks #36046
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
base: main
Are you sure you want to change the base?
Misc icon tweaks #36046
Conversation
templates/repo/icon.tmpl
Outdated
| {{svg "octicon-mirror" 24}} | ||
| {{else if $.IsFork}} | ||
| {{svg "octicon-repo-forked" 24}} | ||
| {{else if $.IsPrivate}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But there is already a label indicating the repository is private.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we could remove the label with this change, possibly adding a title attribute on the icon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both the .IsPrivate and .IsTemplate template conditions render labels and I guess for clarity we should keep these labels. I think it's not a big issue if the repo icon now additionally displays these states.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Regarding |
Maybe this icon is actually fine. I think a repo book icon with a padlock is better than a padlock only. We do not have a "locked" state yet for repos, so this icon is unambiguous too. |
|
One more minor change, |
|
A repository can fall into several state groups:
We can add icons for the states in Group 1, and use text labels for the other groups to maintain consistency and avoid visual conflicts. |
|
Sounds like a plan, I will try that. |
octicon-repo-lockedto indicate private repos, also visible on the repo header nowocticon-repo-forkedto indicate forked repos