Skip to content

fix(storybook): postcss parsing error for node_modules paths #2321

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

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

castastrophe
Copy link
Collaborator

@castastrophe castastrophe commented Nov 28, 2023

Description

There was a typo in the postcss.config.js for storybook where it was not capturing the foldername accurately. If the package existed in the node_modules folder, it was returning ../ instead of the foldername as expected. This means the tokens were not running through the postcss parsing they were supposed to that adds the .spectrum--express modifier and allows us to support loading styles for vars & expressvars at the same time. This led to coachmark and searchwithin to loading the expressvars stylesheet when taking baseline snapshots and failing VRT.

How and where has this been tested?

  • VRT should not pass for coachmark & searchwithin but should instead match the most recent previous snapshot

Screenshots

Screenshot 2023-11-28 at 12 07 42 PM

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. ✨

@castastrophe castastrophe requested a review from pfulton November 28, 2023 17:12
@castastrophe castastrophe force-pushed the fix-storybook-parsing-error-in-postcss branch from 609e676 to 4f5272a Compare November 28, 2023 17:15
@castastrophe castastrophe added run_vrt For use on PRs looking to kick off VRT size-1 XS ~1-6hrs; nearly trivial, a few hours, could do more than one in a single day. storybook ready-for-review labels Nov 28, 2023
Copy link
Contributor

File metrics

Overall Δ: No change 🎉 🎉

Copy link
Contributor

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

@castastrophe castastrophe merged commit a6bd124 into main Nov 28, 2023
@castastrophe castastrophe deleted the fix-storybook-parsing-error-in-postcss branch November 28, 2023 17:45
This was referenced Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review run_vrt For use on PRs looking to kick off VRT size-1 XS ~1-6hrs; nearly trivial, a few hours, could do more than one in a single day. storybook
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants