@@ -321,7 +321,7 @@ function CentileChart({
321
321
constrainToVisibleArea
322
322
backgroundPadding = { 5 }
323
323
pointerLength = { 5 }
324
- cornerRadius = { 0 }
324
+ cornerRadius = { styles . toolTipBorderRadius }
325
325
flyoutHeight = { ( datum ) => {
326
326
const numberOfLines = datum . text . length ;
327
327
return numberOfLines * 18 * textScaleFactor ; // 18 is the line height
@@ -919,7 +919,15 @@ function CentileChart({
919
919
{ /* Creates the Centile Label toggle button */ }
920
920
{
921
921
< GradientLabelsButtonWrapper >
922
- < StyledButtonTooltip >
922
+ < StyledButtonTooltip
923
+ backgroundColor = { styles . toggleTooltipStyle . backgroundColor }
924
+ color = { styles . toggleTooltipStyle . color }
925
+ fontSize = { styles . toggleTooltipStyle . fontSize }
926
+ fontFamily = { styles . toggleTooltipStyle . fontFamily }
927
+ fontWeight = { styles . toggleTooltipStyle . fontWeight }
928
+ fontStyle = { styles . toggleTooltipStyle . fontStyle }
929
+ borderRadius = { styles . toggleTooltipStyle . borderRadius }
930
+ >
923
931
< StyledGradientLabelsButton
924
932
$color = { styles . toggleStyle . activeColour }
925
933
size = { 5 }
@@ -931,21 +939,29 @@ function CentileChart({
931
939
:
932
940
< ShowCentileLabelIcon />
933
941
}
934
- { centileLabels ?
935
- < div className = 'tooltip' > Hide Centile Labels</ div >
936
- :
937
- < div className = 'tooltip' > Show Centile Labels</ div >
938
- }
939
- </ StyledGradientLabelsButton >
940
942
943
+ </ StyledGradientLabelsButton >
944
+ { centileLabels ?
945
+ < div className = 'tooltip' > Hide Centile Labels</ div >
946
+ :
947
+ < div className = 'tooltip' > Show Centile Labels</ div >
948
+ }
941
949
</ StyledButtonTooltip >
942
950
</ GradientLabelsButtonWrapper >
943
951
}
944
952
945
953
{ /* Creates the Zoom to see whole lifespan button */ }
946
954
{ childMeasurements . length > 0 &&
947
955
< FullScreenButtonWrapper >
948
- < StyledButtonTooltip >
956
+ < StyledButtonTooltip
957
+ backgroundColor = { styles . toggleTooltipStyle . backgroundColor }
958
+ color = { styles . toggleTooltipStyle . color }
959
+ fontSize = { styles . toggleTooltipStyle . fontSize }
960
+ fontFamily = { styles . toggleTooltipStyle . fontFamily }
961
+ fontWeight = { styles . toggleTooltipStyle . fontWeight }
962
+ fontStyle = { styles . toggleTooltipStyle . fontStyle }
963
+ borderRadius = { styles . toggleTooltipStyle . borderRadius }
964
+ >
949
965
< StyledFullScreenButton
950
966
onClick = { ( ) => fullScreenPressed ( ) }
951
967
$color = { styles . toggleStyle . activeColour }
@@ -966,7 +982,15 @@ function CentileChart({
966
982
{ /* Creates the Copy button */ }
967
983
{ enableExport && (
968
984
< ShareButtonWrapper >
969
- < StyledButtonTooltip >
985
+ < StyledButtonTooltip
986
+ backgroundColor = { styles . toggleTooltipStyle . backgroundColor }
987
+ color = { styles . toggleTooltipStyle . color }
988
+ fontSize = { styles . toggleTooltipStyle . fontSize }
989
+ fontFamily = { styles . toggleTooltipStyle . fontFamily }
990
+ fontWeight = { styles . toggleTooltipStyle . fontWeight }
991
+ fontStyle = { styles . toggleTooltipStyle . fontStyle }
992
+ borderRadius = { styles . toggleTooltipStyle . borderRadius }
993
+ >
970
994
< StyledShareButton
971
995
$color = { styles . toggleStyle . activeColour }
972
996
size = { 5 }
0 commit comments