-
Notifications
You must be signed in to change notification settings - Fork 182
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
Added newline
icon
#91
Conversation
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.
Hey, thanks for the PR! Given that we already have no-newline
this makes sense to add. Added some feedback before we can merge this in.
src/template/mapping.json
Outdated
@@ -474,5 +474,6 @@ | |||
"bracket-error": 60390, | |||
"lock-small": 60391, | |||
"azure-devops": 60392, | |||
"verified-filled": 60393 | |||
"verified-filled": 60393, | |||
"newline": 61697 |
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.
Is there a reason why this doesn't follow the sequence from before? Should be 60394
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 have copied this value from auto generated .css file (npm run fonts
), converted hexadecimal code. Are all the codes manually written? It is enough to put just next number 60394
? Why they are not generating automaticaly? I think it will be more easy to add/remove icons, if mappig will be made in some different way to avoid using codes, and just to make a list of names with aliases.
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.
The auto-generated css files & unicode characters are generated based on the mapping.json
file. The reason why we have to add them here is because we have a lot of references to the same icon using different aliases. Secondly, we use the icon font in our design tooling so if there are no codepoints they are auto-generated and can shift whenever there are new icons. This causes issues as the glyphs would always change whenever there are new ones. So we always want to assign a codepoint and follow the sequence from before.
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.
Updated mapping.json
icon code.
Co-authored-by: Miguel Solorio <miguel.solorio@microsoft.com>
Thanks for the update! |
Didn't found such icon in package, there was only
![image](https://user-images.githubusercontent.com/8218016/140389464-c38fc0d4-1d59-4960-a4c1-7f103b45fae0.png)
no-newline
icon. I have created a new one, based on existing refference fromno-newline
. May be it will be useful for someone else.