File tree 4 files changed +15
-20
lines changed
4 files changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,15 @@ const config: StorybookConfig = {
10
10
'@storybook/addon-interactions' ,
11
11
'@storybook/addon-mdx-gfm' ,
12
12
'@storybook/addon-webpack5-compiler-babel' ,
13
- {
14
- name : '@storybook/addon-styling-webpack' ,
15
- options : {
16
- rules : [
17
- // Replaces existing CSS rules with given rule
18
- {
19
- test : / \. c s s $ / ,
20
- use : [
21
- 'style-loader' ,
22
- 'css-loader' ,
23
- ] ,
24
- }
25
- ]
26
- }
27
- }
13
+ // {
14
+ // name: '@storybook/addon-styling-webpack',
15
+ // options: {
16
+ // rules: [
17
+ // // Replaces existing CSS rules with given rule
18
+ // // s
19
+ // ]
20
+ // }
21
+ // }
28
22
] ,
29
23
framework : {
30
24
name : '@storybook/react-webpack5' ,
Original file line number Diff line number Diff line change 1
1
// Generated with util/create-component.js
2
2
import * as React from 'react' ;
3
3
import CentileChart from './CentileChart' ;
4
- import RCPCHChart from '../RCPCHChart' ;
5
4
import { monochromeStyles } from '../testParameters/styles/monochromeStyles' ;
6
5
import { Tanner1Styles } from '../testParameters/styles/tanner1Styles' ;
7
6
import { Tanner2Styles } from '../testParameters/styles/tanner2Styles' ;
Original file line number Diff line number Diff line change @@ -300,7 +300,9 @@ function CentileChart({
300
300
backgroundPadding = { 5 }
301
301
pointerLength = { 5 }
302
302
cornerRadius = { 0 }
303
- flyoutStyle = { { ...styles . toolTipFlyout } }
303
+ flyoutStyle = { {
304
+ ...styles . toolTipFlyout ,
305
+ } }
304
306
style = { { ...styles . toolTipMain } }
305
307
/>
306
308
}
Original file line number Diff line number Diff line change @@ -66,18 +66,18 @@ function makeAllStyles(
66
66
toolTipMain : {
67
67
fontSize : chartStyle ?. tooltipTextStyle ?. size ?? 14 ,
68
68
fill : chartStyle ?. tooltipTextStyle ?. colour ?? black ,
69
- fontFamily : 'Montserrat' , // chartStyle?.tooltipTextStyle?.name ??
69
+ fontFamily : chartStyle ?. tooltipTextStyle ?. name ?? 'Montserrat' ,
70
70
fontStyle : chartStyle ?. tooltipTextStyle ?. style ?? 'normal' ,
71
71
textAnchor : "start"
72
72
} ,
73
73
chartTitle : {
74
- fontFamily : 'Montserrat-Bold' , // chartStyle?.titleStyle?.name ?? 'Arial'
74
+ fontFamily : chartStyle ?. titleStyle ?. name ?? 'Arial' ,
75
75
color : chartStyle ?. titleStyle ?. colour ?? black ,
76
76
fontSize : chartStyle ?. titleStyle ?. size ?? 14 ,
77
77
fontStyle : chartStyle ?. titleStyle ?. style === 'italic' ? 'italic' : 'normal' ,
78
78
} ,
79
79
chartSubTitle : {
80
- fontFamily : 'Montserrat-Italic' , // chartStyle?.subTitleStyle?.name ?? 'Arial'
80
+ fontFamily : chartStyle ?. subTitleStyle ?. name ?? 'Arial' ,
81
81
color : chartStyle ?. subTitleStyle ?. colour ?? black ,
82
82
fontSize : chartStyle ?. subTitleStyle ?. size ?? 14 ,
83
83
fontStyle : chartStyle ?. subTitleStyle ?. style === 'italic' ? 'italic' : 'normal' ,
You can’t perform that action at this time.
0 commit comments