Skip to content

Commit ef20711

Browse files
committed
refactor tanner2 to be orange and blue
1 parent 91fd82c commit ef20711

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/RCPCHChart/RCPCHChart.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const PrematureSDSChart: Story = {
100100
chartType: 'sds',
101101
enableExport: false,
102102
exportChartCallback: ()=>{},
103-
theme: 'tanner3',
103+
theme: 'tanner2',
104104
customThemeStyles: {}
105105
},
106106
};

src/testParameters/styles/tanner2Styles.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ export const Tanner2ChartStyles: ChartStyle = {
3434
size: 12,
3535
style: 'italic'
3636
},
37-
tooltipBackgroundColour: "#fdc300",
38-
tooltipStroke: "#fdc300",
37+
tooltipBackgroundColour: "#3366cc",
38+
tooltipStroke: "##3366cc",
3939
tooltipTextStyle: {
4040
name: "Montserrat",
41-
colour: "#000000",
41+
colour: "#FFFFFF",
4242
size: 14,
4343
style: 'normal'
4444
},
@@ -63,10 +63,10 @@ export const Tanner2GridlineStyles: GridlineStyle = {
6363

6464
export const Tanner2CentileStyles: CentileStyle = {
6565
sdsStroke: "#A9A9A9",
66-
centileStroke: "#7159aa",
67-
delayedPubertyAreaFill: "#c6bddd",
66+
centileStroke: "#ff8000",
67+
delayedPubertyAreaFill: "#ffc080",
6868
midParentalCentileStroke: "#ff8000",
69-
midParentalAreaFill: "#c6bddd",
69+
midParentalAreaFill: "#ffc080",
7070
}
7171

7272
export const Tanner2MeasurementStyles: MeasurementStyle = {
@@ -80,10 +80,10 @@ export const Tanner2MeasurementStyles: MeasurementStyle = {
8080
}
8181
}
8282
export const Tanner2SDSStyles: SDSStyle = {
83-
heightStroke: "#ff8000ff",
84-
weightStroke: "#ff80007f",
85-
ofcStroke: "#ff80003f",
86-
bmiStroke: "#ff80001f",
83+
heightStroke: "#7159aa",
84+
weightStroke: "#ff8000",
85+
ofcStroke: "#e60700",
86+
bmiStroke: "#c2a712",
8787
}
8888

8989
/*
@@ -234,28 +234,28 @@ export const Tanner2Styles = {
234234
},
235235
"heightSDS": {
236236
"data": {
237-
"stroke": "#ff8000ff",
237+
"stroke": "#7159aa",
238238
"strokeWidth": 1.5,
239239
"strokeLinecap": "round"
240240
}
241241
},
242242
"weightSDS": {
243243
"data": {
244-
"stroke": "#ff80007f",
244+
"stroke": "#ff8000",
245245
"strokeWidth": 1.5,
246246
"strokeLinecap": "round"
247247
}
248248
},
249249
"ofcSDS": {
250250
"data": {
251-
"stroke": "#ff80003f",
251+
"stroke": "#e60700",
252252
"strokeWidth": 1.5,
253253
"strokeLinecap": "round"
254254
}
255255
},
256256
"bmiSDS": {
257257
"data": {
258-
"stroke": "#ff80001f",
258+
"stroke": "#c2a712",
259259
"strokeWidth": 1.5,
260260
"strokeLinecap": "round"
261261
}

0 commit comments

Comments
 (0)