Replace slash div with math.div

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
info@commodis.de
Posts: 10
Joined: 10 Mar 2021, 12:06

03 Nov 2021, 12:07

With

https://sass-lang.com/documentation/bre ... /slash-div

the sass language announced the deprecation of the slash operator.
Compiling Serenity throws more than 50 warnings.

Statements like

Code: Select all

margin-top: -1 * $iconSize / 2;
should be written as

Code: Select all

math.div(-1 * $iconSize, 2)
with the math module imported like this

Code: Select all

@use "sass:math";
The language also offers an automatic migration tool - see https://sass-lang.com/documentation/bre ... -migration.

Some compilers offer a workaround to suppress the deprecation messages like dark sass using the --quiet flag, but this suppresses my own overrides.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

22 Dec 2021, 09:12

Hi,

Fixed for the next version. Please try the latest version.

Best Regards,

info@commodis.de
Posts: 10
Joined: 10 Mar 2021, 12:06

20 Jan 2022, 15:12

Nice! Thank you very much for your dedicated work!

Have a nice day.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

21 Jan 2022, 09:28

You're welcome! Thanks a lot for the update!

Best Regards,

Post Reply

Return to “Serenity - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests