-
Notifications
You must be signed in to change notification settings - Fork 92
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
Updated KRadioButton 'value' prop #485
Conversation
The asked change, caused the frontend test to fail. So, have reverted it for now. |
@BabyElias Yes, the failing test was not caused by the changes you made. It is an issue that will be addressed separately. Thank you for your contributions! I will now open the related issues in the other Product repositories and can approve this PR once it is verified whether the other repositories are using the deprecated In case it takes several days, please note that the timeframe for the approval and merging of this pr is unknown due to other priorities within those repositories. |
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.
Rather than just replacing value
altogether, we need to more gradually change the behavior because all of the places using this component in other code bases will be using value
as their prop.
If we change things so that using value
doesn't work then we would force those projects to adhere to this change immediately in order to use the latest KDS version. In order to provide more flexibility for the rest of our team as we transition, we need to accommodate both of the props for now.
In a future release, we will finally remove the value
prop altogether which will be indicated in that release's changelog and we can basically just apply these changes as-is because if we didn't need to more gradually deprecate it, these changes would be spot-on. Thank you for your work on this and I apologize for not being more explicit and clear about what was needed in the issue.
Requested changes:
- Allow use of either of the props
value
orbuttonValue
- In the component's
mounted()
hook, if thevalue
prop is notundefined
put aconsole.warn
message "KRadioButton propvalue
is deprecated and will be removed in a future release. Please usebuttonValue
in its place." - Because the props will both have to be
required:false
, add aconsole.error
message in themounted()
hook "KRadioButton:buttonValue
prop is required". No need to mention thevalue
prop here.
Hey! |
No need to worry at all, thank you for keeping us updated and we wish you the best of luck on your exams! |
Hey @LianaHarris360 & @nucleogenesis, I am done with all the required changes.
PS : One of the lint related PR checks is failing, I am not sure what's causing it. Looking into it right now. |
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.
Overall the code changes look good! The failing lint checks can be fixed by running yarn run lint-frontend:format
. More info on that can be found here. I also left some comments below for a few changes that will help avoid potential issues with boolean values.
Made all the required changes. |
@BabyElias that's strange -- it could take a long time because it will be going over all of the files but it shouldn't take so long that it feels like it might be broken 😞 If you try In any case -- if you merge this PR I made on your fork targeting your branch then this PR should receive the fixes and pass the checks. Hope any of this helps! Thanks for all of your work on this ! |
Help re: kolibri-design-system#379
@nucleogenesis Thank you so much for the targeted PR ! It finally helped pass the linting checks. |
Feedback seems to be addressed
Description
Updated the KRadioButton 'value' prop to 'buttonValue' and configured it to avoid confusion regarding API decision.
Issue addressed
Addresses #379
Before/after screenshots
Before


After
Changelog