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

Fix SASS deprecations #1337

Merged
merged 4 commits into from
Aug 28, 2024
Merged

Fix SASS deprecations #1337

merged 4 commits into from
Aug 28, 2024

Conversation

stephenjwatkins
Copy link
Contributor

@stephenjwatkins stephenjwatkins commented Aug 27, 2024

📝 Changes

SASS introduced a breaking change with nested selectors to be more in line with native CSS. This was causing a lot of noise in our scripts.

This PR updates our SASS to remove the problematic code. Most of the time the declartions in SCSS could simply be moved to the top of the block. With complicated nesting (i.e. _responsive-props.scss) we have to utilize & { }.

We'll need to be mindful of this SCSS change in new work—it may warrant a Stylelint rule if it becomes problematic.

✅ Checklist

  • Code is complete and in accordance with our style guide
  • Changeset is added

@stephenjwatkins stephenjwatkins marked this pull request as ready for review August 27, 2024 21:36
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going to version it since theoretically this could change the CSS output

Copy link
Contributor

@kevinalexliu kevinalexliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@stephenjwatkins stephenjwatkins merged commit b7021d7 into main Aug 28, 2024
3 checks passed
@stephenjwatkins stephenjwatkins deleted the fix-sass-deprecation branch August 28, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants