-
Notifications
You must be signed in to change notification settings - Fork 149
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
Option for size-specific icons #4950
Comments
@fabric-8 ok, I didn't understand that from the original issue description. Should we just always provide what we need rather than having fallbacks? I'd prefer to avoid needing conditionals and things just for a simple icon. From other references, is it typ to need so much code arnd icons? This is the ref storybook I used, and it simply has a size prop in the code and does just adjust the height/width of one svg: https://main--64b56e737c0aeefed9d5e675.chromatic.com/?path=/docs/introduction--docs |
Sorry, I have spoken about this with @kyranjamie earlier, should have been more explicit about this in the issue. The implementation was just an idea from my end I imagined to be a nice approach, we can def. leave out the entire fallback/conditional part. But being able to have size-specific svg code would be great. If that's too much effort for now let me know and I'll try to adjust the icons in question in a way that makes them scale / work a bit better. Straight-up scaling is a bit gnarly as the stroke width values you'll end up with are going to be quite random and off-(pixel)grid |
Ok, np, I'll move fwd and refactor it with your requests here. I didn't realize it was discussed already! Sorry for not doing it correctly the first time through. Should be quicker now though with the new icons setup already. 👍 |
Awesome! If you need a helping hand doing the grunt work and getting the svg code for the 16 versions in please let me know, happy to help out! |
## [6.28.0](v6.27.2...v6.28.0) (2024-02-26) ### Features * add dark splash screen, ref [#4398](#4398) ([c4fb072](c4fb072)) * check utxo ids for inscriptions, ref [#4920](#4920) ([86dd00d](86dd00d)) ### Bug Fixes * attempt to fix failing test ([0ff7701](0ff7701)) * broken color on welcome page ([384c947](384c947)) * memo using old input ([8829a2a](8829a2a)) * remove hiro ref in page ([c49f7e9](c49f7e9)) * stamps api, closes [#4845](#4845) ([3230c49](3230c49)) ### Internal * additional checks before adding tapInternalKey, ref [#4125](#4125) ([09a17bf](09a17bf)) * colors, closes [#4831](#4831) ([934cfd0](934cfd0)) * esm webpack ([3cc8878](3cc8878)) * existing icons to use variants, closes [#4950](#4950) ([2ce7319](2ce7319)) * icon variants ([7a886c1](7a886c1)) * **input:** remove InputTextField component ([3556390](3556390)) * new icons using icon gallery ([dc1bf28](dc1bf28)) * post-release merge back ([5a87a5d](5a87a5d)) * upgrade packages ([dcc36d0](dcc36d0))
## [6.28.0](v6.27.2...v6.28.0) (2024-02-26) ### Features * add dark splash screen, ref [#4398](#4398) ([c4fb072](c4fb072)) * check utxo ids for inscriptions, ref [#4920](#4920) ([86dd00d](86dd00d)) ### Bug Fixes * attempt to fix failing test ([0ff7701](0ff7701)) * broken color on welcome page ([384c947](384c947)) * memo using old input ([8829a2a](8829a2a)) * remove hiro ref in page ([c49f7e9](c49f7e9)) * stamps api, closes [#4845](#4845) ([3230c49](3230c49)) ### Internal * additional checks before adding tapInternalKey, ref [#4125](#4125) ([09a17bf](09a17bf)) * colors, closes [#4831](#4831) ([934cfd0](934cfd0)) * esm webpack ([3cc8878](3cc8878)) * existing icons to use variants, closes [#4950](#4950) ([2ce7319](2ce7319)) * icon variants ([7a886c1](7a886c1)) * **input:** remove InputTextField component ([3556390](3556390)) * new icons using icon gallery ([dc1bf28](dc1bf28)) * post-release merge back ([5a87a5d](5a87a5d)) * upgrade packages ([dcc36d0](dcc36d0))
If I understand the new icon implementation correctly we're always just using the default 24x24 asset/svg and scaling it when using them at different sizes within the UI. This approach "breaks" the stroke width which isn't just scaled down from 24x24 and in some cases we're actually using different assets for 24x24 vs. 16x16.
Suggestion:
Happy to collaborate on this and provide assets where necessary!
The text was updated successfully, but these errors were encountered: