Skip to content

Commit 24a0151

Browse files
committed
add centileTextStyle to storybook
1 parent bd70375 commit 24a0151

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/RCPCHChart/RCPCHChart.mdx

+5
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,11 @@ const customStyles = {
511511
gridlines: true,
512512
},
513513
centileStyle: {
514+
centileTextStyle: {
515+
name: 'sans-serif',
516+
size: 12.5,
517+
weight: 400,
518+
},
514519
centileStroke: '#B89F81',
515520
midParentalAreaFill: '#B89F81',
516521
midParentalCentileStroke: '#B89F81',

src/RCPCHChart/RCPCHChart.stories.tsx

+8-4
Original file line numberDiff line numberDiff line change
@@ -503,13 +503,12 @@ export const CustomThemeStylesChart: Story = {
503503
size: 16,
504504
weight: 400,
505505
},
506-
507506
tooltipStroke: '#EBE1D3',
508-
tooltipBackgroundColour: '#FFFDFD',
507+
tooltipBackgroundColour: '#5a526b',
509508
tooltipTextStyle: {
510-
colour: '#706A80',
509+
colour: '#fffdfd',
511510
name: 'sans-serif',
512-
size: 17,
511+
size: 14,
513512
},
514513
},
515514
axisStyle: {
@@ -543,6 +542,11 @@ export const CustomThemeStylesChart: Story = {
543542
gridlines: true,
544543
},
545544
centileStyle: {
545+
centileTextStyle: {
546+
name: 'sans-serif',
547+
size: 12.5,
548+
weight: 400,
549+
},
546550
centileStroke: '#B89F81',
547551
midParentalAreaFill: '#B89F81',
548552
midParentalCentileStroke: '#B89F81',

0 commit comments

Comments
 (0)