-
Notifications
You must be signed in to change notification settings - Fork 3
Icon Component Update #310
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
base: dev
Are you sure you want to change the base?
Conversation
|
@sreidthomas I removed myself from review for now since I think you're still working on this. When you're ready for review, go ahead and re-add me as a reviewer. |
maxatdetroit
left a comment
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.
In addition to the inline comments below, how are you testing this? If you're testing manually using storybook, then would you please list the scenarios you tested on the PR and include a video of the testing?
Note: There are a lot of scenarios to test given the scope of changes here. Make sure to test all the new combinations. E.g.
data-sizeand lightDOMfont-sizeare set; what happens? only one is set; what happens? etc.data-iconandnameattribute are set; what happens? only one is set; what happens? etc.- ... same thing with
libraryattribute.
Also, please see best practices (4) and (6) in #201 . We should update the Icon to reflect JS properties from the name attribute and improve our storybook documentation.
…ot have the same name as in stories, created an icon-helpers.js file and moved the getIcon method to it
maxatdetroit
left a comment
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 property implementation needs to be tweaked slightly, otherwise this is on the right track.
|
Need story to review inheritance on both size and color |
maxatdetroit
left a comment
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.
When I try to view the inheritance stories for testing I'm receiving undefined errors in Storybook. Is this just on my end, or are you seeing the same issues @sreidthomas?
I also left some comments to fix before we merge this in.
|
…t to the attributes that require it
THIS IS FIXED |
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.
It looks like the color is being inherited but not the size. Notice in the video that 48px size and 64px have the same sized icon. Do you know what the issue is? Would you please see if you can fix it? Let me know if you want a hand.
Screen.Recording.2025-05-06.102319.mp4
Yeah I'm not sure if you remember but we spoke about this and I couldn't figure out why the size was not being inherited only the color. I did ask for help with this @maxatdetroit |


This PR is for updating the Icon Component that exists in the experimental by: