-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: OPTIC-2016: Removing AntD reset to aid in UI consistency between page navigations #7420
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
Conversation
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for label-studio-docs-new-theme ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for heartex-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…atch errors when running standalone server for tests.
@bmartel Could you describe what are you actually doing in this PR, please? I see some script and even a docker changes. What's the reasoning behind this? |
@hlomzik the description I wrote is accurately why I'm doing this. AntD has no way to allow you to ignore the reset, so all of these changes are necessary to rip out the reset only code through a postinstall. The resulting file we end up using instead of the original AntD import (which has everything in it) we import this generated file which is AntD without the reset css. I gitignored the file as it is huge and went with a compiled step here. |
…conds slower than before and will be flakey otherwise
This is already addressed by not using any Docker changes
Because AntD does not allow for explicit imports of the components/utilities classes it uses, separate from its reset css, this PR is introducing a postinstall step to strip out the reset css and gitignore that resulting file. This stops the issue of having certain pages impeded by shifting styles like typography and other global considerations which causes unforeseen consistency issues and overall a lot of bugs.