Skip to content

Commit c981381

Browse files
Merge pull request #450 from silevis/v4/remove-deprecated-scss-functions
V4 fix: remove deprecated scss functions
2 parents f28d504 + b61c7c3 commit c981381

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you like our work, please give this project a star ⭐
1717

1818
# Check out the new v5-alpha version
1919

20-
🌐 [Visit our Homepage](https://silevis.github.io/reactgrid/)
20+
🌐 [Visit our new Website](https://silevis.github.io/reactgrid/)
2121

2222
📚 [Dive into the Documentation](https://silevis.github.io/reactgrid/docs/5.0/1-getting-started) to get started quickly and easily.
2323

src/default-colors.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:color";
2+
13
// COLORS
24
$primary-color: #3579f8 !default;
35
$bg-color: #ffffff !default;
@@ -19,10 +21,7 @@ $checkbox-mark: #ffffff !default;
1921
$rg-content-text-color: #000000 !default;
2022
$cell-text-color: #000000 !default;
2123

22-
$dropdown-focused-item-bg-color: lighten(
23-
$color: $primary-color,
24-
$amount: 35,
25-
) !default;
24+
$dropdown-focused-item-bg-color: color.scale($primary-color, $lightness: 92.96875%) !default;
2625
$dropdown-menu-bg-color: #ffffff !default;
2726

2827
// SHADOWS
@@ -41,4 +40,4 @@ $opacity-20: 0.2 !default;
4140
$opacity-15: 0.15 !default;
4241
$opacity-10: 0.1 !default;
4342
$opacity-06: 0.06 !default;
44-
$opacity-01: 0.01 !default;
43+
$opacity-01: 0.01 !default;

src/main.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:color";
2+
13
.rg-copy-container[contenteditable] {
24
-webkit-user-select: text;
35
user-select: text;
@@ -195,7 +197,7 @@
195197
cursor: pointer;
196198

197199
&:hover {
198-
background-color: darken($main-bg-color, 5);
200+
background-color: color.scale($main-bg-color, $lightness: -5%);
199201
}
200202
}
201203
}

0 commit comments

Comments
 (0)