Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new custom theme properties for styling #117

Merged
merged 7 commits into from
Oct 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add centileTextStyle to storybook
  • Loading branch information
gdfreitas committed Oct 22, 2024
commit 24a01510be97cc8565a9e331b199f12708348dd8
5 changes: 5 additions & 0 deletions src/RCPCHChart/RCPCHChart.mdx
Original file line number Diff line number Diff line change
@@ -511,6 +511,11 @@ const customStyles = {
gridlines: true,
},
centileStyle: {
centileTextStyle: {
name: 'sans-serif',
size: 12.5,
weight: 400,
},
centileStroke: '#B89F81',
midParentalAreaFill: '#B89F81',
midParentalCentileStroke: '#B89F81',
12 changes: 8 additions & 4 deletions src/RCPCHChart/RCPCHChart.stories.tsx
Original file line number Diff line number Diff line change
@@ -503,13 +503,12 @@ export const CustomThemeStylesChart: Story = {
size: 16,
weight: 400,
},

tooltipStroke: '#EBE1D3',
tooltipBackgroundColour: '#FFFDFD',
tooltipBackgroundColour: '#5a526b',
tooltipTextStyle: {
colour: '#706A80',
colour: '#fffdfd',
name: 'sans-serif',
size: 17,
size: 14,
},
},
axisStyle: {
@@ -543,6 +542,11 @@ export const CustomThemeStylesChart: Story = {
gridlines: true,
},
centileStyle: {
centileTextStyle: {
name: 'sans-serif',
size: 12.5,
weight: 400,
},
centileStroke: '#B89F81',
midParentalAreaFill: '#B89F81',
midParentalCentileStroke: '#B89F81',