Skip to content

Commit

Permalink
Fix Sass deprecation warning in table component
Browse files Browse the repository at this point in the history
This fixes the following deprecation warning:

    Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
    Recommendation: math.div($sort-link-arrow-size, 2) or calc($sort-link-arrow-size / 2)
    More info and automated migrator: https://sass-lang.com/d/slash-div
  • Loading branch information
floehopper committed Feb 13, 2024
1 parent d1a2231 commit dc16605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/components/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $vertical-on-smallscreen-breakpoint: 940px;
$sort-link-active-colour: govuk-colour("white");
$sort-link-arrow-size: 14px;
$sort-link-arrow-size-small: 8px;
$sort-link-arrow-spacing: $sort-link-arrow-size / 2;
$sort-link-arrow-spacing: calc($sort-link-arrow-size / 2);
$table-row-hover-background-colour: rgba(43, 140, 196, .2);
$table-row-even-background-colour: govuk-colour("light-grey", $legacy: "grey-4");

Expand Down

0 comments on commit dc16605

Please sign in to comment.