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

feat: update postcss tooling #3527

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

castastrophe
Copy link
Collaborator

@castastrophe castastrophe commented Jan 29, 2025

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:

  1. The documentation pages for at least two other components are still loading, including:
  • The pages render correctly, are accessible, and are responsive.
  1. If components have been modified, VRTs have been run on this branch:
  • VRTs have been run and looked at.
  • Any VRT changes have been accepted (by reviewer and/or PR author), or there are no changes.

To-do list

  • I have read the contribution guidelines.
  • I have updated relevant storybook stories and templates.
  • I have tested these changes in Windows High Contrast mode.
  • If my change impacts other components, I have tested to make sure they don't break.
  • If my change impacts documentation, I have updated the documentation accordingly.
  • ✨ This pull request is ready to merge. ✨

Copy link

changeset-bot bot commented Jan 29, 2025

🦋 Changeset detected

Latest commit: e391661

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@spectrum-css/clearbutton Minor
@spectrum-css/assetlist Minor
@spectrum-css/slider Minor
@spectrum-css/dial Minor
@spectrum-css/menu Minor
@spectrum-tools/stylelint-no-unknown-custom-properties Patch
@spectrum-tools/stylelint-no-unused-custom-properties Patch
@spectrum-tools/postcss-add-theming-layer Patch
@spectrum-tools/stylelint-theme-alignment Patch
@spectrum-tools/stylelint-no-missing-var Patch
@spectrum-css/bundle Patch
@spectrum-css/preview Patch

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

Copy link
Contributor

github-actions bot commented Jan 29, 2025

File metrics

Summary

Total size: 2.24 MB*
No change in file sizes

Package Size Minified Gzipped
accordion 17.34 KB 16.57 KB 2.35 KB
actionbutton 25.29 KB 24.20 KB 2.99 KB
alertbanner 5.12 KB 4.89 KB 1.21 KB
asset 2.27 KB 2.15 KB 0.80 KB
assetcard 15.83 KB 15.10 KB 2.23 KB
assetlist 7.31 KB 6.91 KB 1.50 KB
button 38.43 KB 36.57 KB 4.20 KB
calendar 19.39 KB 18.39 KB 2.71 KB
card 18.20 KB 17.14 KB 2.70 KB
clearbutton 5.83 KB 5.54 KB 1.16 KB
coachindicator 5.31 KB 5.07 KB 1.11 KB
colorarea 2.91 KB 2.73 KB 0.95 KB
colorhandle 4.03 KB 3.82 KB 1.05 KB
colorloupe 2.80 KB 2.66 KB 0.96 KB
colorwheel 4.69 KB 4.39 KB 1.25 KB
combobox 29.17 KB 28.12 KB 2.94 KB
dial 10.80 KB 10.14 KB 1.92 KB
dialog 13.53 KB 12.92 KB 1.97 KB
divider 3.16 KB 3.01 KB 0.80 KB
dropzone 7.23 KB 6.92 KB 1.44 KB
fieldlabel 5.24 KB 5.00 KB 1.11 KB
floatingactionbutton 7.06 KB 6.78 KB 1.23 KB
form 2.31 KB 2.18 KB 0.80 KB
icon 11.33 KB 10.49 KB 1.34 KB
illustratedmessage 5.89 KB 5.66 KB 1.15 KB
logicbutton 9.60 KB 9.13 KB 1.71 KB
menu 41.39 KB 39.38 KB 4.47 KB
miller 1.24 KB 1.18 KB 0.62 KB
modal 4.32 KB 4.07 KB 1.12 KB
opacitycheckerboard 1.21 KB 1.18 KB 0.58 KB
pagination 2.27 KB 2.17 KB 0.77 KB
picker 28.06 KB 26.80 KB 3.37 KB
popover 16.14 KB 15.54 KB 1.99 KB
progresscircle 10.78 KB 9.27 KB 1.84 KB
slider 29.36 KB 27.71 KB 3.68 KB
statuslight 10.81 KB 10.34 KB 1.68 KB
steplist 9.98 KB 9.39 KB 1.69 KB
stepper 18.33 KB 17.48 KB 2.41 KB
swatch 10.88 KB 10.25 KB 1.85 KB
table 47.09 KB 45.02 KB 4.89 KB
tooltip 34.13 KB 32.80 KB 3.36 KB
tray 3.42 KB 3.23 KB 1.03 KB
treeview 17.61 KB 16.66 KB 2.42 KB
typography 40.27 KB 38.62 KB 3.56 KB

File change details

accordion

Filename Head Minified Gzipped Compared to base
index-base.css 17.12 KB 16.36 KB 2.33 KB 🟢 ⬇ 0.03 KB
index-theme.css 0.92 KB 0.90 KB 0.47 KB -
index.css 17.34 KB 16.57 KB 2.35 KB 🟢 ⬇ 0.03 KB
metadata.json 9.53 KB - - -
themes/express.css 0.86 KB 0.85 KB 0.48 KB -
themes/spectrum-two.css 0.86 KB 0.85 KB 0.48 KB -
themes/spectrum.css 0.86 KB 0.85 KB 0.48 KB -

actionbutton

Filename Head Minified Gzipped Compared to base
index-base.css 20.10 KB 19.23 KB 2.71 KB 🟢 ⬇ 0.02 KB
index-theme.css 7.64 KB 7.42 KB 0.89 KB -
index.css 25.29 KB 24.20 KB 2.99 KB 🟢 ⬇ 0.02 KB
metadata.json 14.21 KB - - -
themes/express.css 5.72 KB 5.55 KB 0.88 KB -
themes/spectrum-two.css 5.66 KB 5.49 KB 0.88 KB -
themes/spectrum.css 5.89 KB 5.71 KB 0.90 KB -

alertbanner

Filename Head Minified Gzipped Compared to base
index-base.css 5.02 KB 4.79 KB 1.20 KB 🟢 ⬇ 0.05 KB
index-theme.css 0.74 KB 0.74 KB 0.45 KB -
index.css 5.12 KB 4.89 KB 1.21 KB 🟢 ⬇ 0.05 KB
metadata.json 3.20 KB - - -
themes/express.css 0.75 KB 0.74 KB 0.46 KB -
themes/spectrum-two.css 0.74 KB 0.73 KB 0.46 KB -
themes/spectrum.css 0.76 KB 0.75 KB 0.47 KB -

asset

Filename Head Minified Gzipped Compared to base
index-base.css 2.08 KB 1.97 KB 0.76 KB 🟢 ⬇ 0.06 KB
index-theme.css 0.90 KB 0.88 KB 0.48 KB -
index.css 2.27 KB 2.15 KB 0.80 KB 🟢 ⬇ 0.06 KB
metadata.json 1.22 KB - - -
themes/express.css 0.85 KB 0.84 KB 0.48 KB -
themes/spectrum-two.css 0.83 KB 0.82 KB 0.48 KB -
themes/spectrum.css 0.85 KB 0.84 KB 0.48 KB -

assetcard

Filename Head Minified Gzipped Compared to base
index-base.css 15.50 KB 14.78 KB 2.17 KB 🟢 ⬇ 0.02 KB
index-theme.css 1.07 KB 1.05 KB 0.51 KB -
index.css 15.83 KB 15.10 KB 2.23 KB 🟢 ⬇ 0.02 KB
metadata.json 9.14 KB - - -
themes/express.css 1.00 KB 0.98 KB 0.55 KB 🟢 ⬇ < 0.01 KB
themes/spectrum-two.css 0.98 KB 0.96 KB 0.54 KB 🟢 ⬇ < 0.01 KB
themes/spectrum.css 1.00 KB 0.98 KB 0.55 KB 🟢 ⬇ < 0.01 KB

assetlist

Filename Head Minified Gzipped Compared to base
index-base.css 7.16 KB 6.77 KB 1.49 KB 🟢 ⬇ 0.58 KB
index-theme.css 0.86 KB 0.85 KB 0.47 KB -
index.css 7.31 KB 6.91 KB 1.50 KB 🟢 ⬇ 0.58 KB
metadata.json 4.02 KB - - 🟢 ⬇ 0.63 KB
themes/express.css 0.81 KB 0.80 KB 0.48 KB -
themes/spectrum-two.css 0.79 KB 0.78 KB 0.47 KB -
themes/spectrum.css 0.81 KB 0.80 KB 0.48 KB -

button

Filename Head Minified Gzipped Compared to base
index-base.css 30.32 KB 28.81 KB 3.76 KB 🟢 ⬇ 0.75 KB
index-theme.css 12.30 KB 11.92 KB 1.14 KB -
index.css 38.43 KB 36.57 KB 4.20 KB 🟢 ⬇ 0.75 KB
metadata.json 20.18 KB - - -
themes/express.css 9.83 KB 9.54 KB 1.06 KB -
themes/spectrum-two.css 9.90 KB 9.61 KB 1.06 KB -
themes/spectrum.css 9.91 KB 9.62 KB 1.08 KB -

calendar

Filename Head Minified Gzipped Compared to base
index-base.css 19.29 KB 18.30 KB 2.69 KB 🟢 ⬇ 0.07 KB
index-theme.css 0.77 KB 0.77 KB 0.46 KB -
index.css 19.39 KB 18.39 KB 2.71 KB 🟢 ⬇ 0.07 KB
metadata.json 9.13 KB - - -
themes/express.css 0.76 KB 0.75 KB 0.48 KB -
themes/spectrum-two.css 0.74 KB 0.73 KB 0.47 KB -
themes/spectrum.css 0.76 KB 0.75 KB 0.48 KB -

card

Filename Head Minified Gzipped Compared to base
index-base.css 17.89 KB 16.84 KB 2.68 KB 🟢 ⬇ 0.10 KB
index-theme.css 1.02 KB 1.02 KB 0.49 KB -
index.css 18.20 KB 17.14 KB 2.70 KB 🟢 ⬇ 0.10 KB
metadata.json 9.03 KB - - -
themes/express.css 0.98 KB 0.96 KB 0.50 KB -
themes/spectrum-two.css 0.95 KB 0.93 KB 0.49 KB -
themes/spectrum.css 0.98 KB 0.96 KB 0.50 KB -

clearbutton

Filename Head Minified Gzipped Compared to base
index-base.css 5.28 KB 5.01 KB 1.10 KB 🟢 ⬇ 0.36 KB
index-theme.css 1.42 KB 1.39 KB 0.53 KB -
index.css 5.83 KB 5.54 KB 1.16 KB 🟢 ⬇ 0.36 KB
metadata.json 3.43 KB - - 🟢 ⬇ 0.35 KB
themes/express.css 1.22 KB 1.19 KB 0.53 KB -
themes/spectrum-two.css 1.15 KB 1.13 KB 0.51 KB -
themes/spectrum.css 1.17 KB 1.14 KB 0.52 KB -

coachindicator

Filename Head Minified Gzipped Compared to base
index.css 5.31 KB 5.07 KB 1.11 KB 🟢 ⬇ 0.42 KB
metadata.json 2.55 KB - - -

colorarea

Filename Head Minified Gzipped Compared to base
index.css 2.91 KB 2.73 KB 0.95 KB 🟢 ⬇ < 0.01 KB
metadata.json 1.31 KB - - -

colorhandle

Filename Head Minified Gzipped Compared to base
index.css 4.03 KB 3.82 KB 1.05 KB 🟢 ⬇ 0.13 KB
metadata.json 1.89 KB - - -

colorloupe

Filename Head Minified Gzipped Compared to base
index.css 2.80 KB 2.66 KB 0.96 KB 🟢 ⬇ 0.03 KB
metadata.json 1.75 KB - - -

colorwheel

Filename Head Minified Gzipped Compared to base
index-base.css 4.59 KB 4.30 KB 1.23 KB 🟢 ⬇ 0.02 KB
index-theme.css 0.73 KB 0.72 KB 0.45 KB -
index.css 4.69 KB 4.39 KB 1.25 KB 🟢 ⬇ 0.02 KB
metadata.json 1.97 KB - - -
themes/express.css 0.73 KB 0.73 KB 0.46 KB -
themes/spectrum-two.css 0.72 KB 0.71 KB 0.46 KB -
themes/spectrum.css 0.73 KB 0.73 KB 0.46 KB -

combobox

Filename Head Minified Gzipped Compared to base
index-base.css 28.61 KB 27.58 KB 2.88 KB 🟢 ⬇ 1.09 KB
index-theme.css 1.35 KB 1.32 KB 0.53 KB -
index.css 29.17 KB 28.12 KB 2.94 KB 🟢 ⬇ 1.09 KB
metadata.json 16.30 KB - - -
themes/express.css 1.19 KB 1.16 KB 0.54 KB -
themes/spectrum-two.css 1.18 KB 1.15 KB 0.53 KB -
themes/spectrum.css 1.18 KB 1.16 KB 0.54 KB -

dial

Filename Head Minified Gzipped Compared to base
index-base.css 10.66 KB 10.01 KB 1.90 KB 🟢 ⬇ 0.39 KB
index-theme.css 0.83 KB 0.82 KB 0.48 KB -
index.css 10.80 KB 10.14 KB 1.92 KB 🟢 ⬇ 0.39 KB
metadata.json 4.69 KB - - 🟢 ⬇ 0.25 KB
themes/express.css 0.80 KB 0.79 KB 0.48 KB -
themes/spectrum-two.css 0.78 KB 0.77 KB 0.48 KB -
themes/spectrum.css 0.80 KB 0.79 KB 0.49 KB -

dialog

Filename Head Minified Gzipped Compared to base
index.css 13.53 KB 12.92 KB 1.97 KB 🟢 ⬇ 0.06 KB
metadata.json 4.35 KB - - -

divider

Filename Head Minified Gzipped Compared to base
index-base.css 2.90 KB 2.77 KB 0.77 KB 🟢 ⬇ 0.02 KB
index-theme.css 0.94 KB 0.92 KB 0.48 KB -
index.css 3.16 KB 3.01 KB 0.80 KB 🟢 ⬇ 0.02 KB
metadata.json 1.83 KB - - -
themes/express.css 0.90 KB 0.88 KB 0.49 KB -
themes/spectrum-two.css 0.88 KB 0.87 KB 0.48 KB -
themes/spectrum.css 0.90 KB 0.88 KB 0.49 KB -

dropzone

Filename Head Minified Gzipped Compared to base
index-base.css 7.17 KB 6.86 KB 1.43 KB 🟢 ⬇ 0.04 KB
index-theme.css 0.72 KB 0.72 KB 0.45 KB -
index.css 7.23 KB 6.92 KB 1.44 KB 🟢 ⬇ 0.04 KB
metadata.json 5.10 KB - - -
themes/express.css 0.72 KB 0.71 KB 0.45 KB -
themes/spectrum-two.css 0.70 KB 0.69 KB 0.45 KB -
themes/spectrum.css 0.72 KB 0.71 KB 0.45 KB -

fieldlabel

Filename Head Minified Gzipped Compared to base
index.css 5.24 KB 5.00 KB 1.11 KB 🟢 ⬇ 0.09 KB
metadata.json 2.89 KB - - -

floatingactionbutton

Filename Head Minified Gzipped Compared to base
index.css 7.06 KB 6.78 KB 1.23 KB 🟢 ⬇ 0.04 KB
metadata.json 3.92 KB - - -

form

Filename Head Minified Gzipped Compared to base
index.css 2.31 KB 2.18 KB 0.80 KB 🟢 ⬇ 0.06 KB
metadata.json 1.16 KB - - -

icon

Filename Head Minified Gzipped Compared to base
index.css 11.33 KB 10.49 KB 1.34 KB 🟢 ⬇ 0.05 KB
metadata.json 6.00 KB - - -

illustratedmessage

Filename Head Minified Gzipped Compared to base
index.css 5.89 KB 5.66 KB 1.15 KB 🟢 ⬇ 0.08 KB
metadata.json 3.66 KB - - -

logicbutton

Filename Head Minified Gzipped Compared to base
index-base.css 8.96 KB 8.50 KB 1.68 KB 🟢 ⬇ 0.02 KB
index-theme.css 1.54 KB 1.51 KB 0.52 KB -
index.css 9.60 KB 9.13 KB 1.71 KB 🟢 ⬇ 0.02 KB
metadata.json 4.92 KB - - -
themes/express.css 1.27 KB 1.25 KB 0.50 KB -
themes/spectrum-two.css 1.25 KB 1.23 KB 0.50 KB -
themes/spectrum.css 1.27 KB 1.24 KB 0.51 KB -

menu

Filename Head Minified Gzipped Compared to base
index-base.css 40.69 KB 38.71 KB 4.37 KB 🟢 ⬇ 0.33 KB
index-theme.css 1.36 KB 1.33 KB 0.55 KB -
index.css 41.39 KB 39.38 KB 4.47 KB 🟢 ⬇ 0.33 KB
metadata.json 20.29 KB - - 🟢 ⬇ 0.19 KB
themes/express.css 1.25 KB 1.22 KB 0.57 KB -
themes/spectrum-two.css 1.29 KB 1.26 KB 0.58 KB -
themes/spectrum.css 1.25 KB 1.22 KB 0.57 KB -

miller

Filename Head Minified Gzipped Compared to base
index.css 1.24 KB 1.18 KB 0.62 KB 🟢 ⬇ 0.02 KB
metadata.json 0.48 KB - - -

modal

Filename Head Minified Gzipped Compared to base
index-base.css 4.25 KB 4.00 KB 1.11 KB 🟢 ⬇ 0.05 KB
index-theme.css 0.72 KB 0.71 KB 0.45 KB -
index.css 4.32 KB 4.07 KB 1.12 KB 🟢 ⬇ 0.05 KB
metadata.json 1.79 KB - - -
themes/express.css 0.72 KB 0.71 KB 0.45 KB -
themes/spectrum-two.css 0.72 KB 0.71 KB 0.45 KB -
themes/spectrum.css 0.72 KB 0.71 KB 0.46 KB -

opacitycheckerboard

Filename Head Minified Gzipped Compared to base
index.css 1.21 KB 1.18 KB 0.58 KB 🟢 ⬇ 0.56 KB
metadata.json 0.52 KB - - -

pagination

Filename Head Minified Gzipped Compared to base
index.css 2.27 KB 2.17 KB 0.77 KB 🟢 ⬇ 0.03 KB
metadata.json 1.30 KB - - -

picker

Filename Head Minified Gzipped Compared to base
index-base.css 27.10 KB 25.88 KB 3.29 KB 🟢 ⬇ 0.11 KB
index-theme.css 1.84 KB 1.80 KB 0.57 KB -
index.css 28.06 KB 26.80 KB 3.37 KB 🟢 ⬇ 0.11 KB
metadata.json 14.96 KB - - -
themes/express.css 1.45 KB 1.41 KB 0.55 KB -
themes/spectrum-two.css 1.55 KB 1.51 KB 0.55 KB -
themes/spectrum.css 1.56 KB 1.51 KB 0.57 KB -

popover

Filename Head Minified Gzipped Compared to base
index-base.css 16.07 KB 15.47 KB 1.98 KB 🟢 ⬇ 0.13 KB
index-theme.css 0.72 KB 0.71 KB 0.44 KB -
index.css 16.14 KB 15.54 KB 1.99 KB 🟢 ⬇ 0.13 KB
metadata.json 8.02 KB - - -
themes/express.css 0.69 KB 0.69 KB 0.44 KB -
themes/spectrum-two.css 0.71 KB 0.70 KB 0.44 KB -
themes/spectrum.css 0.72 KB 0.72 KB 0.45 KB -

progresscircle

Filename Head Minified Gzipped Compared to base
index-base.css 10.48 KB 8.99 KB 1.83 KB 🟢 ⬇ 0.02 KB
index-theme.css 1.01 KB 1.00 KB 0.49 KB -
index.css 10.78 KB 9.27 KB 1.84 KB 🟢 ⬇ 0.02 KB
metadata.json 3.56 KB - - -
themes/express.css 0.93 KB 0.92 KB 0.50 KB -
themes/spectrum-two.css 0.92 KB 0.90 KB 0.50 KB -
themes/spectrum.css 0.93 KB 0.92 KB 0.50 KB -

slider

Filename Head Minified Gzipped Compared to base
index-base.css 27.95 KB 26.36 KB 3.54 KB 🟢 ⬇ 0.29 KB
index-theme.css 2.67 KB 2.58 KB 0.66 KB -
index.css 29.36 KB 27.71 KB 3.68 KB 🟢 ⬇ 0.29 KB
metadata.json 14.01 KB - - 🟢 ⬇ 0.30 KB
themes/express.css 2.14 KB 2.07 KB 0.63 KB -
themes/spectrum-two.css 2.07 KB 2.00 KB 0.64 KB -
themes/spectrum.css 2.12 KB 2.05 KB 0.64 KB -

statuslight

Filename Head Minified Gzipped Compared to base
index.css 10.81 KB 10.34 KB 1.68 KB 🟢 ⬇ 0.02 KB
metadata.json 6.89 KB - - -

steplist

Filename Head Minified Gzipped Compared to base
index-base.css 9.82 KB 9.23 KB 1.67 KB 🟢 ⬇ 0.08 KB
index-theme.css 0.89 KB 0.88 KB 0.48 KB -
index.css 9.98 KB 9.39 KB 1.69 KB 🟢 ⬇ 0.08 KB
metadata.json 4.97 KB - - -
themes/express.css 0.82 KB 0.81 KB 0.48 KB -
themes/spectrum-two.css 0.81 KB 0.80 KB 0.48 KB -
themes/spectrum.css 0.82 KB 0.81 KB 0.48 KB -

stepper

Filename Head Minified Gzipped Compared to base
index-base.css 16.65 KB 15.87 KB 2.27 KB 🟢 ⬇ 0.02 KB
index-theme.css 2.77 KB 2.69 KB 0.66 KB -
index.css 18.33 KB 17.48 KB 2.41 KB 🟢 ⬇ 0.02 KB
metadata.json 8.96 KB - - -
themes/express.css 2.06 KB 1.99 KB 0.65 KB -
themes/spectrum-two.css 2.23 KB 2.15 KB 0.64 KB -
themes/spectrum.css 2.23 KB 2.16 KB 0.65 KB -

swatch

Filename Head Minified Gzipped Compared to base
index-base.css 10.60 KB 10.00 KB 1.81 KB 🟢 ⬇ 0.16 KB
index-theme.css 0.88 KB 0.87 KB 0.47 KB -
index.css 10.88 KB 10.25 KB 1.85 KB 🟢 ⬇ 0.16 KB
metadata.json 5.71 KB - - -
themes/express.css 0.91 KB 0.90 KB 0.51 KB -
themes/spectrum-two.css 0.89 KB 0.88 KB 0.50 KB -
themes/spectrum.css 0.91 KB 0.89 KB 0.51 KB -

table

Filename Head Minified Gzipped Compared to base
index-base.css 46.40 KB 44.36 KB 4.84 KB 🟢 ⬇ 0.34 KB
index-theme.css 1.49 KB 1.45 KB 0.55 KB -
index.css 47.09 KB 45.02 KB 4.89 KB 🟢 ⬇ 0.34 KB
metadata.json 22.38 KB - - -
themes/express.css 1.38 KB 1.34 KB 0.58 KB -
themes/spectrum-two.css 1.36 KB 1.33 KB 0.57 KB -
themes/spectrum.css 1.37 KB 1.34 KB 0.58 KB -

tooltip

Filename Head Minified Gzipped Compared to base
index-base.css 34.03 KB 32.70 KB 3.34 KB 🟢 ⬇ 0.13 KB
index-theme.css 0.76 KB 0.75 KB 0.46 KB -
index.css 34.13 KB 32.80 KB 3.36 KB 🟢 ⬇ 0.13 KB
metadata.json 21.64 KB - - -
themes/express.css 0.76 KB 0.75 KB 0.46 KB -
themes/spectrum-two.css 0.75 KB 0.74 KB 0.46 KB -
themes/spectrum.css 0.77 KB 0.76 KB 0.47 KB -

tray

Filename Head Minified Gzipped Compared to base
index.css 3.42 KB 3.23 KB 1.03 KB 🟢 ⬇ 0.39 KB
metadata.json 1.32 KB - - -

treeview

Filename Head Minified Gzipped Compared to base
index-base.css 17.43 KB 16.50 KB 2.41 KB 🟢 ⬇ 0.07 KB
index-theme.css 0.86 KB 0.85 KB 0.47 KB -
index.css 17.61 KB 16.66 KB 2.42 KB 🟢 ⬇ 0.07 KB
metadata.json 8.60 KB - - -
themes/express.css 0.81 KB 0.80 KB 0.47 KB -
themes/spectrum-two.css 0.79 KB 0.78 KB 0.47 KB -
themes/spectrum.css 0.81 KB 0.80 KB 0.47 KB -

typography

Filename Head Minified Gzipped Compared to base
index.css 40.27 KB 38.62 KB 3.56 KB 🟢 ⬇ 0.18 KB
metadata.json 35.51 KB - - -
* Size is the sum of all main files for packages in the library.
* An ASCII character in UTF-8 is 8 bits or 1 byte.

@castastrophe castastrophe force-pushed the feat-update-postcss-tooling branch 4 times, most recently from ee65449 to cf1a9f3 Compare February 6, 2025 20:23
@castastrophe castastrophe force-pushed the feat-update-postcss-tooling branch from cf1a9f3 to 92c03c9 Compare February 24, 2025 22:51
@castastrophe castastrophe force-pushed the feat-update-postcss-tooling branch 5 times, most recently from bca4cd9 to 014150d Compare March 11, 2025 13:54
@castastrophe castastrophe force-pushed the main branch 2 times, most recently from 0d5bdfb to 8637d39 Compare March 11, 2025 14:54
@castastrophe castastrophe force-pushed the feat-update-postcss-tooling branch 2 times, most recently from 0b755b1 to ef803f7 Compare March 11, 2025 15:42
Copy link
Contributor

github-actions bot commented Mar 11, 2025

🚀 Deployed on https://pr-3527--spectrum-css.netlify.app

@castastrophe castastrophe force-pushed the feat-update-postcss-tooling branch 2 times, most recently from 2a75e72 to 3f44956 Compare March 12, 2025 13:26
@castastrophe castastrophe force-pushed the main branch 10 times, most recently from c68f4e3 to d2272ea Compare March 12, 2025 21:56
@castastrophe castastrophe force-pushed the feat-update-postcss-tooling branch from 3f44956 to 3636391 Compare March 12, 2025 22:15
@castastrophe castastrophe force-pushed the feat-update-postcss-tooling branch from d254b53 to cdee561 Compare March 12, 2025 22:23
@castastrophe castastrophe self-assigned this Mar 12, 2025
@castastrophe castastrophe added dependencies Pull requests that update a dependency file size-3 M ~18-30hrs; moderate effort or complexity, several work days needed. feature A request to add a feature or enhancement to a component run_vrt For use on PRs looking to kick off VRT storybook ready-for-review low priority Not a critical update or fix; can be deprioritized if necessary labels Mar 12, 2025
@castastrophe castastrophe marked this pull request as ready for review March 12, 2025 22:24
@castastrophe castastrophe force-pushed the feat-update-postcss-tooling branch from cdee561 to e391661 Compare March 12, 2025 22:31
@@ -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}`) })),
Copy link
Collaborator Author

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",
Copy link
Collaborator Author

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",
Copy link
Collaborator Author

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",
Copy link
Collaborator Author

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.

Comment on lines +108 to +109
"postcss-licensing": "^3.0.0",
"postcss-load-config": "^6.0.1",
Copy link
Collaborator Author

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",
Copy link
Collaborator Author

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 },
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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.

@castastrophe castastrophe force-pushed the feat-update-postcss-tooling branch from e391661 to d7f211f Compare March 18, 2025 14:49
@castastrophe castastrophe requested review from jawinn and 5t3ph March 18, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file feature A request to add a feature or enhancement to a component low priority Not a critical update or fix; can be deprioritized if necessary ready-for-review run_vrt For use on PRs looking to kick off VRT size-3 M ~18-30hrs; moderate effort or complexity, several work days needed. storybook
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant