ActiveAdmin 3.x stylesheet warnings: lighten() and darken() deprecated #8492
Replies: 2 comments 6 replies
-
|
In my own code, I have been solving these deprecation warnings as follows. Before: After: This will supposedly produce the identical color output as the deprecated code, according to https://sass-lang.com/documentation/modules/color/#lighten For |
Beta Was this translation helpful? Give feedback.
-
|
One potential drawback of fixing these deprecation warnings is that I'm not sure that Ruby sass understands the Edit: Apps that use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using ActiveAdmin 3.2.5 with dart sass 1.79.3.
Expected behavior
Compiling assets should complete without warnings.
Actual behavior
There are some new deprecation warnings introduced by dart sass 1.79.0. The color functions
lightenanddarkenare deprecated. ActiveAdmin 3.x uses these functions in several places in its scss files. Here is one example:How to reproduce
Generate a blank Rails 7.2 app:
Install dart sass:
Install ActiveAdmin:
For a simple reproduction, replace the Rails default
application.scsswith ActiveAdmin's:Compile assets:
Produces:
Beta Was this translation helpful? Give feedback.
All reactions