Skip to content
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

Merged
merged 5 commits into from
Nov 5, 2021
Merged

Conversation

Profesor08
Copy link
Contributor

Didn't found such icon in package, there was only no-newline icon. I have created a new one, based on existing refference from no-newline. May be it will be useful for someone else.
image

Copy link

@miguelsolorio miguelsolorio left a 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.

@@ -474,5 +474,6 @@
"bracket-error": 60390,
"lock-small": 60391,
"azure-devops": 60392,
"verified-filled": 60393
"verified-filled": 60393,
"newline": 61697

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

Copy link
Contributor Author

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.

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.

Copy link
Contributor Author

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.

src/icons/newline.svg Outdated Show resolved Hide resolved
@miguelsolorio miguelsolorio merged commit 482a516 into microsoft:main Nov 5, 2021
@miguelsolorio
Copy link

Thanks for the update!

@miguelsolorio miguelsolorio added this to the November 2021 milestone Nov 5, 2021
@Profesor08 Profesor08 deleted the newline-icon branch November 5, 2021 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants