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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dart sass 2.0 division deprecations #3544

Conversation

darrenterhune
Copy link
Contributor

@darrenterhune darrenterhune commented Jul 15, 2022

The src/rails_admin/styles/base/theming.scss used division calculations which causes deprecation warnings with dart sass >= 2.

The fontawesome-free version also has the same problem.

Using calc() around the division math fixes the issue in theming.scss
Upgrading fontawesome-free to the latest version fixes their issues

sass/sass#2565
sass/dart-sass#663

For rails projects using sassc this is a problem. The app I currently work on is on most recent gems and packages for everything. We do a really good job at keeping everything up to date. Unfortunately these warnings have now turned into errors being raised in webpacker-dev-server.

I tested these changes by publishing my own npm package while pointing our Gemfile to my forked version.

If we could get a minor release with this and any other minor fixes that may be in that would be really appreciated 馃槃

The src/rails_admin/styles/base/theming.scss used division calculations
which causes deprecation warnings with dart sass >= 2.

The fontawesome-free version also has the same problem.

Using calc() around the division math fixes the issue in theming.scss
Upgrading fontawesome-free to the latest version fixies their issue
@coveralls
Copy link

coveralls commented Jul 15, 2022

Coverage Status

Changes unknown
when pulling f2df560 on darrenterhune:dart-sass-2-0-deprecated-calc-upgrade-fontawesome-free
into ** on railsadminteam:master**.

Copy link
Contributor

@codealchemy codealchemy left a comment

Choose a reason for hiding this comment

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

馃憤 (calc has been available in dart-sass since 1.40.0)

@mshibuya
Copy link
Member

Nice fix!
There are also vendorized css and fonts), to be used by Sprockets-only applications. Could you update them as well?

@darrenterhune
Copy link
Contributor Author

@mshibuya yeah I can update those today 馃槃

Fontawesome-free removed eot, svg and woff files and do not seem to be 
included anymore
@wartron
Copy link

wartron commented Jul 22, 2022

Thanks for fixing this.

@mshibuya mshibuya merged commit 44138c7 into railsadminteam:master Jul 23, 2022
@mshibuya
Copy link
Member

Thank you 馃専

mshibuya added a commit that referenced this pull request Aug 6, 2022
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.

None yet

5 participants