Skip to content

Commit c3e6aee

Browse files
v5.4.2 (#617)
* update scrollbar colors * v5.4.2 --------- Co-authored-by: John Kapantzakis <kapantzak@gmail.com>
1 parent f265fc9 commit c3e6aee

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netdata/netdata-ui",
3-
"version": "5.4.1",
3+
"version": "5.4.2",
44
"description": "netdata UI kit",
55
"main": "dist/index.js",
66
"module": "dist/es6/index.js",

src/mixins/webkitVisibleScrollbar.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,30 @@ import { getSizeBy, getRgbColor } from "@/theme/utils"
33

44
export default css`
55
scrollbar-width: ${getSizeBy(1)};
6-
scrollbar-color: ${getRgbColor("border", 0.3)} ${getRgbColor("border", 0.1)};
6+
scrollbar-color: ${getRgbColor("scrollBarThumb", 0.3)} ${getRgbColor("scrollBarThumb", 0.1)};
77
88
&::-webkit-scrollbar {
99
width: ${getSizeBy(1)};
1010
}
11+
1112
&::-webkit-scrollbar-track {
12-
border-radius: ${getSizeBy(0.5)};
13-
background-color: ${getRgbColor("border", 0.1)};
13+
background-color: ${getRgbColor("scrollBarTrack", 1)};
14+
border:1px solid ${getRgbColor("scrollBarBorder", 0.4)};
15+
border-radius: ${getSizeBy(1)};
1416
}
1517
&::-webkit-scrollbar-thumb {
18+
width: ${getSizeBy(0.5)};
19+
border:1px solid ${getRgbColor("scrollBarBorder", 1)};
1620
border-radius: ${getSizeBy(1)};
17-
background-color: ${getRgbColor("border", 0.6)};
21+
background-color: ${getRgbColor("scrollBarThumb", 1)}
1822
}
1923
&::-webkit-scrollbar-thumb:hover {
20-
background-color: ${getRgbColor("border", 0.9)};
24+
background-color: ${getRgbColor("scrollBarThumbHover", 1)};
2125
}
2226
&::-webkit-scrollbar-track-piece {
23-
background-color: ${getRgbColor("border", 0.3)};
27+
background-color: ${getRgbColor("scrollBarThumb", 0.3)};
2428
}
2529
&::-webkit-scrollbar-corner {
26-
background-color: ${getRgbColor("border", 0.3)};
30+
background-color: ${getRgbColor("scrollBarThumb", 0.3)};
2731
}
2832
`

src/theme/dark/colors.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ const appColors = {
2020
modalInfoBackground: rawColors.neutral.grey50,
2121
menuItemSelected: rawColors.green.green30,
2222
menuItemHover: rawColors.green.green10,
23+
scrollBarTrack: rawColors.neutral.grey25,
24+
scrollBarThumb: rawColors.neutral.grey50,
25+
scrollBarThumbHover: rawColors.neutral.grey100,
26+
scrollBarBorder: rawColors.neutral.grey55,
27+
2328
// Links
2429
link: rawColors.green.green110,
2530
linkHover: rawColors.green.green120,

src/theme/default/colors.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ const appColors = {
2020
modalInfoBackground: rawColors.neutral.blackhaze,
2121
menuItemSelected: rawColors.green.green196,
2222
menuItemHover: rawColors.green.green190,
23+
scrollBarTrack: rawColors.neutral.grey190,
24+
scrollBarThumb: rawColors.neutral.grey170,
25+
scrollBarThumbHover: rawColors.neutral.grey150,
26+
scrollBarBorder: rawColors.neutral.grey180,
2327
// Links
2428
link: rawColors.green.green100,
2529
linkHover: rawColors.green.green110,

0 commit comments

Comments
 (0)