-
Notifications
You must be signed in to change notification settings - Fork 11
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
Remove .isRequired from emptyColor prop #101
Remove .isRequired from emptyColor prop #101
Conversation
Also, I saw the ask in
|
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.
Love it
Thank you!!!! I appreciate your guidance in understanding what to address, Jahon for pointing me to you in the first place, and Kathryn for Zooming with me this morning to help me understand why when I made changes in Neutron it wasn't "working" but then addressing in SegmentedArc was like 🎉 So, thanks all! |
While this works for the shopper app, is it too presumptuous of us to assume that the default color should be what we've set it to? I wonder if transparent could be an option 🤔 |
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.
emptyColor doesn't need to be a new prop
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.
Now we're talkin'
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.
I have a few thoughts...
Jahon and I are communicating in a DM. I shouldn't have removed |
The other day while testing Stats I saw a warning on the
Ratings
detail screen related toemptyColor
onSegmentedArc
. To address, I would like to propose removing.isRequired
from thepropTypes
sinceemptyColor
is not being used or required infeedback-summary-component.js
in Neutron -- there the circle onRatings
detail screen will always show 100% (noemptyColor
portion for the circle).When I mocked the removal on Neutron -- the removal of
.isRequired
on propTypes did resolve the issue of the warning foremptyColor
on segments.If there are other suggestions for how to resolve this issue on Neutron rather than on this repository, please let me know and I can redirect my attention there.
*Here I am also proposing adding a default definition forremoved default color suggestion after conversation with Kyle and Tanner's comment, made a great point that this repository is being used by more than just Neutron. Point to consider in the future is a default color (such as transparent, per Tanner).emptyColor
as#F3F3F4
to matchgrey_100
on Neutron.