Templarian / MaterialDesign-React

Dist for Material Design Icons React Component for JS/TypeScript
https://materialdesignicons.com
MIT License
142 stars 20 forks source link

Release v1.0.0 on NPM #12

Closed Templarian closed 6 years ago

Templarian commented 6 years ago

Testing for the new updated codebase is merged into master.

Only thing left is to do a NPM release. This includes 1 breaking change.

Templarian commented 6 years ago

Done!

Please let me know if you see any regressions other than listed above @azdanov. I've know a few others that will be updating their versions.

andrewjrhill commented 4 years ago

@Templarian - Out of curiosity, do you recall why the default for the size prop was switch to null?

I recently dropped this into a project I am working on that uses a lot of icons and find myself having to pick between either extending your component with a wrapper that has a default size or adding size={1} to every icon we drop into the project.

Either way, it adds an additional "thing to remember" to the project and seemingly reduces scalability as it is an additional learning step for future devs who join our team.

Templarian commented 4 years ago

@andrewjrhill Short answer is we want you to define icon sizes in CSS. As shown in the notes above you can get the desired icon size by appen

.container svg { width: 1.5rem }

Long answer is that @mdi/react is made for more icon packs than just @mdi/js, you can also use the 'Simple Icons` brand package (since we decided the maintenance burden to support branding was outside our scope a few years back).

andrewjrhill commented 4 years ago

@Templarian - Thanks for the response 👍

Great work by the way. This is a really nice library.