-
Notifications
You must be signed in to change notification settings - Fork 25
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
Bug: Design System variable declaration issue #914
Comments
Just a note that we don't recommend using Gulp because it has a security vulnerability and hasn't had a new release since 2019. However we should
|
I've put some work into this at #915. Some notes. The following components have been modified.
Notably, a couple components mentioned in the report are unaffected by this (no JS), so I didn't touch them.
I'm not sure if there's an easy way to document package compilation, since it can be so specific to each tool (Webpack, Rollup, Esbuild, Parcel, Fusebox, Browserify, Vite, Snowpack, and so on). It would probably be good to put together examples of all these arrangements as part of that old "integrations" concept we used to talk about. A convenient, hosted, a la carte bundler tool would also be good to have here. |
@Danny-Guzman @rkojik @artuoma please review the items of note above, these components have been modified. |
@yesenia-gtz There are only 2 vulnerabilities for gulpjs and we don't use the glob-parent or copy-props packages so we are not affected. Can't review the changes made until the PR submitted by @xjensen gets approved and merged https://www.cvedetails.com/vulnerability-list/vendor_id-24145/Gulpjs.html |
@xjensen To start, we can recommend the lightest weight solution (Rollup or Esbuild probably?). And build out the other examples once we have better data on usage -- or maybe even ask others to contribute their solutions. Having even minimal instructions is a signal that we expect people to use some kind of compiler. A hosted bundler is definitely still on the table. |
@zakiya Maybe I don't understand, but what do you mean by hosted bundler??? |
@Danny-Guzman My comment was in response to @xjensen comment "A convenient, hosted, a la carte bundler tool would also be good to have here." We've long had the idea of building a tool - possibly with a UI, where developers can choose which components they want to include and generate a download. #718 describes an MVP version |
Updates to the affected packages have been merged into the release branch and published to NPM. Here are the NPM package names and new version numbers. @cagov/ds-combined-css@2.0.3 Let us know if this helps. If so, we can close this. If not, we may need some additional information about build tools, error messages, etc. |
So far, variable declarations seem to be working with no issues. In the CSS can we use relative paths instead of absolute paths where fonts are being loaded? This will allow fonts to load no matter what the file structure is so long as the fonts are one level up from where the CSS is. css fonts Example
|
@Danny-Guzman Good to hear the variable problems are solved. We've taken your suggestion regarding fonts and opened up a separate issue at #922. Let's move the font problem discussion over to that thread. Otherwise, I think we can go ahead and close this Issue. |
Issue flagged via email from Guzman, Danny@CIO <Danny.Guzman@state.ca.gov>
"I'll send more issues as I come across them, for now this is the biggest issue and there's no workaround until this gets fixed. Just using these 2 components as examples but this is on every component.
When the files are compiled together, the const style statement causes coding errors since you can't redeclare a constant variable.
Not sure if we can get someone to correct this soon, but currently accordion, feature card, link grid, page navigation and page alerts are available Design System Gutenberg blocks, so if we can get them to at least fix these 5 then I and Konstantin can continue building out GovOps and Drought"
The text was updated successfully, but these errors were encountered: