@@ -22,10 +22,11 @@ const Tooltip = ({
2222
2323 const lightTheme = {
2424 strokeGridLineColor : '#ebebeb' ,
25- textColor : '#8c8c8c ' ,
25+ textColor : '#212121 ' ,
2626 axisBaseLineColor : '#ebebeb' ,
2727 legendBackgroundColor : '#ffffff' ,
2828 legendBorder : '1px solid #ebebeb' ,
29+ tooltipTextColor : '#e5e5e5' ,
2930 tooltipBackgroundColor : '#ffffff' ,
3031 tooltipBorder : '1px solid #ddd' ,
3132 tooltipShadow : `0 0 10px 0 rgba(80, 80, 80, 0.2)` ,
@@ -37,7 +38,8 @@ const Tooltip = ({
3738 axisBaseLineColor : '#3d3d3d' ,
3839 legendBackgroundColor : '#1d1d1d' ,
3940 legendBorder : '1px solid #3d3d3d' ,
40- tooltipBackgroundColor : '#1d1d1d' ,
41+ tooltipTextColor : '#e5e5e5' ,
42+ tooltipBackgroundColor : '#383838' ,
4143 tooltipBorder : '1px solid #3d3d3d' ,
4244 tooltipShadow : `0 0 10px 0 rgba(100, 100, 100, 0.2)` ,
4345 } ;
@@ -125,7 +127,7 @@ const Tooltip = ({
125127 borderRight : `12px solid ${ themes [ theme ] . tooltipBackgroundColor } ` ,
126128 borderBottom : `6px solid ${ themes [ theme ] . tooltipBackgroundColor } ` ,
127129 borderLeft : `12px solid ${ themes [ theme ] . tooltipBackgroundColor } ` ,
128- // padding: '0.6em 1em',
130+ padding : '0.6em 1em' ,
129131 borderRadius : '4px' ,
130132 minWidth : '140px' ,
131133 maxWidth : '240px' ,
@@ -134,7 +136,7 @@ const Tooltip = ({
134136 textAlign : 'center' ,
135137 lineHeight : '1.4em' ,
136138 fontSize : '12px' ,
137- color : `${ themes [ theme ] . textColor } ` ,
139+ color : `${ themes [ theme ] . tooltipTextColor } ` ,
138140 // border: `${themes[theme].tooltipBorder}`,
139141 zIndex : '9' ,
140142 transition : 'all 0.1s ease-out' ,
0 commit comments