@@ -43,7 +43,7 @@ ensuring the details live up to expectations.
43
43
for an ideal example):
44
44
- "Base" properties: display, position, flex, transition, direction, etc
45
45
(anything NOT related to size or color)
46
- - ` ${sizeStyles(props) } ` : a function that contains all properties related
46
+ - ` ${sizeStyles} ` : a function that contains all properties related
47
47
to component sizing (usually based on calculated relationships), i.e.
48
48
margin, padding, width, height, line-height, font-size – all grouped
49
49
ordering (including pseudos, children, etc) applies within the
@@ -52,7 +52,7 @@ ensuring the details live up to expectations.
52
52
- ` :hover `
53
53
- ` :focus `
54
54
- ` :active `
55
- - ` ${colorStyles(props) } ` : a function that contains all properties related
55
+ - ` ${colorStyles} ` : a function that contains all properties related
56
56
to component color, i.e. border-color, background-color, color, box-shadow
57
57
– including any color modifications based on pseudo-class states, in the
58
58
order shown above – all grouped ordering (including psuedos, children,
@@ -63,8 +63,7 @@ ensuring the details live up to expectations.
63
63
property groupings – note that children styled components should contain
64
64
all their CSS properties, when possible
65
65
- The last declaration in any view component is
66
- ` ${retrieveComponentStyles(COMPONENT_ID, props)} ` which allows an
67
- implementer to leverage the
66
+ ` ${componentStyles} ` which allows an implementer to leverage the
68
67
[ ` theme ` ] ( https://zendeskgarden.github.io/react-components/theming/ )
69
68
"components" object to override specific component styles.
70
69
- The view component ` defaultProps ` must contain ` theme: DEFAULT_THEME ` for
0 commit comments