question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, why the icon size is multiplied by 1.5 ?

I refer to this snippet:

  const width = typeof size === "string" ? size : `${size * 1.5}rem`;

I am wrapping @mdi/react icon to add isSmall, isLarge props: I expected that size would be passed as is.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fibocommented, Aug 31, 2018

@Templarian thanks, I am going to check it out. I will probably using your package in production at my new job, just in few minutes I am going to discuss about some proposal and among many others there will be this package.

Ahah I was like cause it was what I was looking for and it was just created, I putted like the fifth star on GitHub.

Thanks for sharing your software and for your passion, I hope you can find useful some packages I shared or at least I will try to contribute with feedbacks and maybe PRs.

Have a nice day, Gianluca.

1reaction
Templariancommented, Aug 23, 2018

Since you’re passing a string it will continue to work the same after the changes go out for v1.0.0. Your feedback along with 2 others convinced me we should change the default functionality in the final release, so thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Choosing the Right Size and Format for Icons - Icons8 Blog
Choosing the Right Size and Format for Icons ; iOS 9, 58×58, 80×80, 120×120, 152×152, 180×180, 1024×1024 ; Windows 10, 16×16, 24×24, 32×32,...
Read more >
IBM Design Language – UI icons
Icons have been designed to work best in four sizes: 16px, 20px, 24px, and 32px. Please use icons at their originally produced size....
Read more >
Sizing Icons | Font Awesome Docs
We'll cover the basics of industry standard sizing recommendations, and how you can size icons up when it's useful, or when text alignment...
Read more >
Windows Icon Size Guide (Win 7 ICO Format) |
Standard Windows Icon Size for ICO format · 256 x 256 pixels – 32bit (24bit colour, 8bit transparency) · 48 x 48 pixels...
Read more >
How To Change Icon Size (Windows 10) - Software Advice
Changing the size of your PC's desktop, taskbar, and File Explorer icons is a simple yet valuable computer personalization technique that helps ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found