Skip to content
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

Custom input CSS infiltrates into SVG outputs #129

Open
fdoflorenzano opened this issue May 4, 2022 · 0 comments
Open

Custom input CSS infiltrates into SVG outputs #129

fdoflorenzano opened this issue May 4, 2022 · 0 comments
Labels
bug:bug: Something isn't working

Comments

@fdoflorenzano
Copy link
Contributor

Describe the bug
When custom inputs are used in mechanic project, their CSS also infiltrates into a design function's iframe because of dependencies, and therefore SVG outputs also get injected their CSS. In some cases, that CSS isn't automatically removed. I specifically had this with the ui-components CSS definitions, and had SVG outputs that triple in weight because of these.

A specific setting is introduced (ignoreStyles) in #128 to patch this, but that also ignores the design function's CSS. So currently having only the design function's CSS but not any from custom inputs is a bit tricky.

Expected behavior
SVG outputs not to contain custom input's CSS automatically.

Desktop (please complete the following information):

  • OS: macOS Monterrey 12.3.1
  • Browser: Firefox 99.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:bug: Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant