Skip to content

Add parenthesis in operations to keep order. - #248

Merged
jathak merged 1 commit into
sass:mainfrom
pamelalozano16:calc-interpolation
Dec 19, 2023
Merged

Add parenthesis in operations to keep order.#248
jathak merged 1 commit into
sass:mainfrom
pamelalozano16:calc-interpolation

Conversation

@pamelalozano16

Copy link
Copy Markdown
Contributor

Bug fix: Removing interpolation was causing changes in the order of calculations.
Replacing interpolation with parenthesis in these cases produces the same result.

Ex. $a * #{$b + $c} is not the same calculation as $a * $b + $c, but it is the same as .$a * ($b + $c)

@pamelalozano16
pamelalozano16 force-pushed the calc-interpolation branch 2 times, most recently from 228bbbe to a74a811 Compare December 9, 2023 01:35
@nex3
nex3 requested a review from jathak December 11, 2023 21:42

@jathak jathak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please add a changelog entry and bump the pubspec version to 1.8.2-dev (since we can release this and #249 at the same time)

Comment thread test/migrators/calc_interpolation/calc_remove_interpolation.hrx Outdated
Comment thread CHANGELOG.md Outdated
@jathak
jathak merged commit 31ea60a into sass:main Dec 19, 2023
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