Skip to content

Commit 83e9fd6

Browse files
authored
Updated ExpandableSection ExpandIcon and CollapseIcon prop types to accept react components. (#67)
1 parent 9edafa6 commit 83e9fd6

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-storefront",
3-
"version": "7.11.0",
3+
"version": "7.11.1",
44
"description": "Build and deploy e-commerce progressive web apps (PWAs) in record time.",
55
"module": "./index.js",
66
"license": "Apache-2.0",

src/ExpandableSection.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,17 @@ export const styles = theme => ({
127127
/**
128128
* Styles applied to the expand icon element.
129129
*/
130-
expandIcon: {},
130+
expandIcon: {
131+
height: 24,
132+
width: 24,
133+
},
131134
/**
132135
* Styles applied to the collapse icon element.
133136
*/
134-
collapseIcon: {},
137+
collapseIcon: {
138+
height: 24,
139+
width: 24,
140+
},
135141
})
136142

137143
const useStyles = makeStyles(styles, { name: 'RSFExpandableSection' })
@@ -250,12 +256,12 @@ ExpandableSection.propTypes = {
250256
/**
251257
* The icon to use for collapsed groups.
252258
*/
253-
ExpandIcon: PropTypes.object,
259+
ExpandIcon: PropTypes.elementType,
254260

255261
/**
256262
* The icon to use for expanded groups.
257263
*/
258-
CollapseIcon: PropTypes.object,
264+
CollapseIcon: PropTypes.elementType,
259265

260266
/**
261267
* If `false`, the default left and right margins are removed.

0 commit comments

Comments
 (0)