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

Clarify unary for Sass #17595

Merged
merged 4 commits into from
Oct 2, 2024
Merged

Conversation

frankharkins
Copy link
Contributor

@frankharkins frankharkins commented Sep 27, 2024

Closes #17593

https://sass-lang.com/documentation/breaking-changes/strict-unary/

This line causes a deprecation warning in newer versions of Sass. This PR makes a small edit to solve the warning. This shouldn't change the behaviour of the style as Sass interprets the syntax as a subtraction (EDIT: This did not have no effect as I thought, see my comment). This is also most likely what the original author intended, otherwise they could have omitted the second -$spacing-05.

Changelog

Changed

Testing / Reviewing

Probably easiest way to verify this is to go to the CodeSandbox repro and add the space to node_modules/@carbon/styles/scss/components/modal/_modal.scss (L128).

Copy link
Contributor

github-actions bot commented Sep 27, 2024

All contributors have signed the DCO.
Posted by the DCO Assistant Lite bot.

@frankharkins
Copy link
Contributor Author

I have read the DCO document and I hereby sign the DCO.

Copy link

netlify bot commented Sep 27, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 5eb6e6a
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66fc378270b51b0007bee08c
😎 Deploy Preview https://deploy-preview-17595--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 27, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 5eb6e6a
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66fc37824971db0008ab5262
😎 Deploy Preview https://deploy-preview-17595--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.98%. Comparing base (7e6ec8e) to head (5eb6e6a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #17595   +/-   ##
=======================================
  Coverage   76.98%   76.98%           
=======================================
  Files         409      409           
  Lines       14001    14001           
  Branches     4353     4353           
=======================================
  Hits        10779    10779           
  Misses       3049     3049           
  Partials      173      173           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

It seems my initial fix _did_ break the styling. This commit tries the other
interpretation to see if it passes the snapshot tests.
@frankharkins
Copy link
Contributor Author

frankharkins commented Sep 30, 2024

Looking at the failed snapshot, it seems the change did break the styling. I've switched to the other interpretation of the syntax.

EDIT: Actually I retract this. I assumed the Percy diff was my branch against main, but it's actually my branch against main 5 days ago. It seems at least some of the diff is due to the font changing, which I doubt was caused my style change. I'm reverting 8e1ac73.

@tay1orjones
Copy link
Member

Sorry for the flaky percy report, it definitely wasn't related to your changes. All should be good here to merge once status checks pass

@frankharkins
Copy link
Contributor Author

frankharkins commented Oct 1, 2024

@tay1orjones no worries, thanks both for reviewing!

@tay1orjones tay1orjones added this pull request to the merge queue Oct 2, 2024
Merged via the queue into carbon-design-system:main with commit 58290ff Oct 2, 2024
36 checks passed
tay1orjones added a commit to tay1orjones/carbon that referenced this pull request Oct 2, 2024
* Fix: Clarify SCSS

* Try other interpretation

It seems my initial fix _did_ break the styling. This commit tries the other
interpretation to see if it passes the snapshot tests.

* Revert "Try other interpretation"

This reverts commit 8e1ac73.

---------

Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Strict unary deprecation in Sass
3 participants