-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
antd theme related changes, bump v4 to v5 #3823
Conversation
@Manish3323 Can you rebase and resolve conflicts as well as updating the |
In the change log, I need to mention upcoming version, what version do you suggest ? Thanks |
@Manish3323 if we can't keep antd@ 4.x in the peer dependencies for @rjsf/antd, then this will be a breaking change and we'll have to go to 6.x.x @heath-freenome I know we had a number of changes planned for 6.x, but we haven't started on them. If this is ready, what do you think about bumping the major version for just this PR? |
@nickgros hi i have updated the peer dependency for @rfjs/antd to v4, which will not make this change a breaking one. Still, If users want to make use of v5 styling then they need to wrap their app with the following provider, like i have done in playground's DemoFrame.tsx.
else they can still have the v4 styling. the forms now look like following with v5: When playground doesn't make use of StyleProvider, antd v4 styles kicks in because the stylesheet is pointing to v4's cdn link of ant.min.css in app.tsx: |
@Manish3323 please update things so that there are no longer conflicts |
@nickgros @Manish3323 If this can be made backwards compatible with v4 (which it sounds like it might be) then I don't think we need to worry about bumping RJSF to v6. It sounds like @Manish3323 I like that you added the documentation into the |
Hi, @heath-freenome Updated docs for Antd & resolve conflicts. |
@Manish3323 If @nickgros and @heath-freenome are going to bump the version of RJSF to v6 I think it will be easier to bump the version of AntD to v5 and go only with v5. I don't see a reason to keep v4 and add a new package: https://github.com/ant-design/cssinjs and wrap the form with this packages. |
@cr8or1 i agree with you.. i made those changes thinking that major release is not coming in near future. if that is the case, i can keep v5 only |
@cr8or1 @Manish3323 If we did do a v6, there is a lot of things we'd like to get into it, which could result in a long-lived branch before we go beta. If these changes can be backwards compatible to antd v4, then I think the best bet is to go that route |
|
lol.. github is crazy now i am allowed to open this one.. :p |
@Manish3323 was this merged with main or just Closed? |
Reasons for making this change
this PR is to fix #3639.
Checklist
npm run test:update
to update snapshots, if needed.