Should we keep the aliases
attribute in the devicon.json
?
#465
Replies: 4 comments 4 replies
-
If it's not applicable I'm for removing it as it is kind of confusing because all of the font icons look "plain" anyway. |
Beta Was this translation helpful? Give feedback.
-
I think the idea behind the Since this rule was never enforced there is a mix in the font names and alias are doing things even worse (at least for contributors). When we are thinking of removing the |
Beta Was this translation helpful? Give feedback.
-
If we are to change the way Another way is to keep the attribute As for introducing a new |
Beta Was this translation helpful? Give feedback.
-
If aliases are always meant to add the icons as a plain icon as well, can't we just hardcode it? Seems to me like it would be the same logic for all icons. If I understand correctly the usage is that if a plain icon doesn't exist, then it duplicates the original icon and uses that ss plain icon. In case original doesn't exist either, it will use any other version and duplicate that instead. If this is the case, it can definitely be scripted with some very simple logic. Extremely simple logic: If(!icon.plain) {
icon.plain = icon.original
} A bit more robust logic icon.plain = icon.plain || icon.original || icon.line || icon.plain_wordmark || icon.original_wordmark || icon.line_wordmark |
Beta Was this translation helpful? Give feedback.
-
Hello all,
As you guys might know, each object in the
devicon.json
has an attribute foraliases
(see CONTRIBUTING.md. I understand the reason why konpa wanted aliases for "plain" and "original" version but I don't think it is applicable anymore. I think that the majority of people will use the website to find which class name they should use. There is also thedevicon.json
which lists all the font versions in itsversions
attribute.Besides usage, I think it is a bit hard for contributors to understand and add it to the
devicon.json
. If it's worthwhile, we can keep this feature. However, if not many people use it, I don't see why we should keep it.What do you guys think?
Beta Was this translation helpful? Give feedback.
All reactions