-
Notifications
You must be signed in to change notification settings - Fork 199
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
feat: update postcss tooling #3527
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: e391661 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
File metricsSummaryTotal size: 2.24 MB*
File change detailsaccordion
actionbutton
alertbanner
asset
assetcard
assetlist
button
calendar
card
clearbutton
coachindicator
colorarea
colorhandle
colorloupe
colorwheel
combobox
dial
dialog
divider
dropzone
fieldlabel
floatingactionbutton
form
icon
illustratedmessage
logicbutton
menu
miller
modal
opacitycheckerboard
pagination
picker
popover
progresscircle
slider
statuslight
steplist
stepper
swatch
table
tooltip
tray
treeview
typography
* An ASCII character in UTF-8 is 8 bits or 1 byte. |
ee65449
to
cf1a9f3
Compare
cf1a9f3
to
92c03c9
Compare
bca4cd9
to
014150d
Compare
0d5bdfb
to
8637d39
Compare
0b755b1
to
ef803f7
Compare
🚀 Deployed on https://pr-3527--spectrum-css.netlify.app |
2a75e72
to
3f44956
Compare
c68f4e3
to
d2272ea
Compare
3f44956
to
3636391
Compare
d254b53
to
cdee561
Compare
cdee561
to
e391661
Compare
@@ -104,7 +104,17 @@ export default { | |||
devSourcemap: configType === "DEVELOPMENT", | |||
}, | |||
resolve: { | |||
alias: components.map(component => ({ find: `@spectrum-css/${component}`, replacement: path.resolve(__dirname, `../components/${component}`) })), | |||
alias: [ | |||
...components.map(component => ({ find: `@spectrum-css/${component}`, replacement: path.resolve(__dirname, `../components/${component}`) })), |
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.
This gently expands our local alias'ing should we need it in future for more direct imports.
@@ -42,7 +42,7 @@ | |||
"@adobe/spectrum-css-workflow-icons": "^1.5.4", | |||
"@spectrum-css/bundle": "1.0.0", | |||
"@spectrum-css/tokens": "16.0.1", | |||
"@spectrum-css/tokens-legacy": "npm:@spectrum-css/tokens@^15.2.0", | |||
"@spectrum-css/tokens-legacy": "npm:@spectrum-css/tokens@^15.0.0", |
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.
There seems to be an issue with the 15.2.0 tokens.json file so I pulled back to 15.0.0 where no issues exist.
@@ -70,7 +70,7 @@ | |||
"lodash-es": "^4.17.21", | |||
"npm-registry-fetch": "^18.0.2", | |||
"postcss": "^8.5.3", | |||
"prettier": "^3.4.2", | |||
"prettier": "^3.5.3", |
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.
Minor update to prettier to get the latest functionality.
@@ -70,16 +70,17 @@ | |||
"@changesets/cli": "^2.27.11", | |||
"@commitlint/cli": "^19.6.1", | |||
"@commitlint/config-conventional": "^19.6.0", | |||
"@csstools/postcss-bundler": "^2.0.6", |
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.
Added the postcss-bundler for the Storybook styles being processed so we have a more optimized and usable product for even our internal CSS.
"postcss-licensing": "^3.0.0", | ||
"postcss-load-config": "^6.0.1", |
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.
Validated postcss-licensing breaking change update because no licensing results have changed. 🥳
Validated postcss-load-config breaking change because the config loading in the scripts are not failing or returning different results.
"postcss-modules": "^6.0.1", | ||
"postcss-preset-env": "^9.5.13", | ||
"postcss-preset-env": "^10.1.5", |
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.
This is the primary update in the PR as results in the change to the focus-within selectors.
"dir-pseudo-class": { preserve: true }, | ||
"nesting-rules": { noIsPseudoSelector: true }, |
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.
A lot of these settings can be removed as the defaults in the latest version align with our configurations.
resolveNestedSelectors: true | ||
} | ||
], | ||
"selector-class-pattern": null, |
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.
We don't need to report errors for Storybook selectors.
e391661
to
d7f211f
Compare
Description
By updating the postcss-preset-env to the latest breaking change version, output for this component no longer injects the
.js-focus-within
and '[focus-within]` selectors for the focus-within polyfill.As this fallback feature is not currently used in SWC, risk to the end user for this removal is low. Changes appear in: clearbutton, assetlist, slider, dial, menu.
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
yarn build
: expect to see no new error messages or new warnings. Validating no changes to the build output.yarn storybook
: validate that the storybook opens and has no new errors introduced.Regression testing
Validate:
To-do list