-
Notifications
You must be signed in to change notification settings - Fork 233
chore(tooling): make process-spectrum more robust and always generate overrides #5072
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
|
Branch previewReview the following VRT differencesWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
If the changes are expected, update the |
Tachometer resultsCurrently, no packages are changed by this PR... |
Lighthouse scores
What is this?Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on Transfer Size
Request Count
|
Pull Request Test Coverage Report for Build 13187849064Details
💛 - Coveralls |
a6cedd5
to
3253497
Compare
c12eecc
to
c46f039
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!!
Description
Make
tasks/process-spectrum
more robust to changes in CSS theme overrides. This is needed for the upcoming component icon and component CSS dependency updates, to make sure we don't leave stale files behind!Motivation and context
s2-foundations-redux
branch no longer defined several theme-specific variables that had been present in earlier released versions of the CSS components used by SWC (likely because they were no longer necessary - great!).tasks/process-spectrum
script was not designed to handle cases where previously existing CSS theme files were removed. Specifically,process-spectrum
skipped writing*-overrides.css
files for missing or empty theme files. While this seems logical, it created issues by leaving behind outdated (or “stale”)*-overrides.css
files when corresponding theme files were removed.To fix this, I updated the logic in
process-spectrum
to always write*-overrides.css files
, even for empty or removed theme files, which successfully resolved the issue.Picked up from #4999 draft.
How has this been tested?
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.