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

[Dependency] Fix compatibility issue with less >= 3.5 due to math changes #6512

Closed
wants to merge 1 commit into from

Conversation

sciyoshi
Copy link
Contributor

A follow-up to #6447, there's a new change in less 3.5 for how calculations are handled. This PR avoids the current interpolation that's happening and simply uses calc(). The compiled CSS will be a bit different but should work the same way.

Closes Semantic-Org/Semantic-UI-LESS#30, Semantic-Org/Semantic-UI-LESS#46, #6470.

@sciyoshi
Copy link
Contributor Author

cc @jlukic @levithomason

@y0hami y0hami added this to the 2.3.x milestone Jul 31, 2018
@RussBrown00
Copy link

For whats it's worth, this fixes the bug - :LGTM:

@daniel-cottone
Copy link

@jlukic @levithomason Can we get a review on this PR?

@ColinFrick
Copy link

Applying this patch will break with the current build system (gulp-less@3.5.0):
@tabularFluidWidth: calc(100% + (@tabularFluidOffset * 2));
will output
calc(102%)

@corydeppen
Copy link

Is there anything preventing the fix introduced in fomantic/Fomantic-UI#97 from being merged here?

@jlukic
Copy link
Member

jlukic commented Sep 17, 2018

I'm going to look into adding this as a patch. Got lost in the shuffle.

Feel free to email me at jack@semantic-ui.com if there are breaking changes like this, github is difficult for me to parse notifications.

@courdek
Copy link

courdek commented Oct 3, 2018

Any idea on when this patch may find its way into the npm packages?

@jlukic
Copy link
Member

jlukic commented Oct 13, 2018

I've validated this and merged it into next in 5e8dcde

I've also added some additional calc swaps here 4b4df6c

I've updated our build pipeline to enforce a minimum build of gulp-less that supports the new syntax. As this will not work in older versions of less and will cause breaking changes. aae225a

I'll make a note of the requirement for those using older versions of LESS with the less only package to update in the release notes.

jlukic added a commit that referenced this pull request Oct 13, 2018
@jlukic jlukic modified the milestones: 2.4.2, 2.4.1 Oct 13, 2018
@jlukic jlukic closed this Oct 13, 2018
jlukic added a commit that referenced this pull request Oct 13, 2018
jlukic added a commit that referenced this pull request Oct 13, 2018
@sciyoshi sciyoshi deleted the less-3.5 branch October 15, 2018 01:57
@brendon
Copy link

brendon commented Nov 8, 2018

Does this mean that building Semantic-UI-Rails-LESS against https://github.com/metaskills/less-rails which uses https://github.com/cowboyd/less.rb which seems stuck at Less 1.7.0 will now fail?

Looks like a perfect storm of abandoned dependencies! :D

@lubber-de

This comment was marked as spam.

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.

Make LESS 3.x compatible
10 participants