Skip to content

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

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from

Conversation

bmartel
Copy link
Contributor

@bmartel bmartel commented Apr 24, 2025

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.

@github-actions github-actions bot added the fix label Apr 24, 2025
Copy link

netlify bot commented Apr 24, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 631f389
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-storybook/deploys/68125eaa061a820008d96efd
😎 Deploy Preview https://deploy-preview-7420--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Apr 24, 2025

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit 631f389
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-docs-new-theme/deploys/68125eaa43ec730008705307

Copy link

netlify bot commented Apr 24, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 631f389
🔍 Latest deploy log https://app.netlify.com/sites/heartex-docs/deploys/68125eaa3afdbe0008fac1d5

@bmartel bmartel requested a review from yyassi-heartex April 24, 2025 18:23
@bmartel bmartel requested a review from hlomzik April 24, 2025 21:30
@bmartel bmartel marked this pull request as draft April 24, 2025 21:31
@bmartel bmartel marked this pull request as ready for review April 24, 2025 21:31
@bmartel bmartel requested a review from a team as a code owner April 24, 2025 21:39
@bmartel bmartel requested a review from farioas April 29, 2025 13:38
@bmartel bmartel marked this pull request as draft April 29, 2025 13:39
@bmartel bmartel marked this pull request as ready for review April 29, 2025 13:39
@hlomzik
Copy link
Collaborator

hlomzik commented Apr 30, 2025

@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?

@bmartel
Copy link
Contributor Author

bmartel commented Apr 30, 2025

@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.

@bmartel bmartel removed the request for review from farioas April 30, 2025 14:03
@yyassi-heartex yyassi-heartex requested a review from farioas April 30, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants