Skip to content

Commit

Permalink
feat(Icon): add prepend and append props for adding margin
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljeter committed May 31, 2019
1 parent b4ecc4a commit 33e7a13
Show file tree
Hide file tree
Showing 14 changed files with 309 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ShallowWrapper {
"ariaLabel": "test",
"ariaLabelledBy": "",
"children": <Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -37,6 +38,7 @@ ShallowWrapper {
isAria={true}
name="chat_28"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand Down Expand Up @@ -68,6 +70,7 @@ ShallowWrapper {
"key": undefined,
"nodeType": "class",
"props": Object {
"append": false,
"ariaLabel": null,
"buttonClassName": "",
"className": "",
Expand All @@ -76,6 +79,7 @@ ShallowWrapper {
"isAria": true,
"name": "chat_28",
"onClick": null,
"prepend": false,
"size": null,
"sizeOverride": false,
"style": null,
Expand All @@ -98,6 +102,7 @@ ShallowWrapper {
"ariaLabel": "test",
"ariaLabelledBy": "",
"children": <Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -106,6 +111,7 @@ ShallowWrapper {
isAria={true}
name="chat_28"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand Down Expand Up @@ -137,6 +143,7 @@ ShallowWrapper {
"key": undefined,
"nodeType": "class",
"props": Object {
"append": false,
"ariaLabel": null,
"buttonClassName": "",
"className": "",
Expand All @@ -145,6 +152,7 @@ ShallowWrapper {
"isAria": true,
"name": "chat_28",
"onClick": null,
"prepend": false,
"size": null,
"sizeOverride": false,
"style": null,
Expand Down
16 changes: 16 additions & 0 deletions react/src/lib/Alert/tests/__snapshots__/index.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ ShallowWrapper {
type="button"
>
<Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -78,6 +79,7 @@ ShallowWrapper {
isAria={true}
name="cancel_16"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand Down Expand Up @@ -179,6 +181,7 @@ ShallowWrapper {
type="button"
>
<Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -187,6 +190,7 @@ ShallowWrapper {
isAria={true}
name="cancel_16"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand All @@ -206,6 +210,7 @@ ShallowWrapper {
"ariaLabel": "",
"ariaLabelledBy": "",
"children": <Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -214,6 +219,7 @@ ShallowWrapper {
isAria={true}
name="cancel_16"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand Down Expand Up @@ -245,6 +251,7 @@ ShallowWrapper {
"key": undefined,
"nodeType": "class",
"props": Object {
"append": false,
"ariaLabel": null,
"buttonClassName": "",
"className": "",
Expand All @@ -253,6 +260,7 @@ ShallowWrapper {
"isAria": true,
"name": "cancel_16",
"onClick": null,
"prepend": false,
"size": null,
"sizeOverride": false,
"style": null,
Expand Down Expand Up @@ -321,6 +329,7 @@ ShallowWrapper {
type="button"
>
<Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -329,6 +338,7 @@ ShallowWrapper {
isAria={true}
name="cancel_16"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand Down Expand Up @@ -430,6 +440,7 @@ ShallowWrapper {
type="button"
>
<Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -438,6 +449,7 @@ ShallowWrapper {
isAria={true}
name="cancel_16"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand All @@ -457,6 +469,7 @@ ShallowWrapper {
"ariaLabel": "",
"ariaLabelledBy": "",
"children": <Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -465,6 +478,7 @@ ShallowWrapper {
isAria={true}
name="cancel_16"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand Down Expand Up @@ -496,6 +510,7 @@ ShallowWrapper {
"key": undefined,
"nodeType": "class",
"props": Object {
"append": false,
"ariaLabel": null,
"buttonClassName": "",
"className": "",
Expand All @@ -504,6 +519,7 @@ ShallowWrapper {
"isAria": true,
"name": "cancel_16",
"onClick": null,
"prepend": false,
"size": null,
"sizeOverride": false,
"style": null,
Expand Down
16 changes: 16 additions & 0 deletions react/src/lib/AlertCall/tests/__snapshots__/index.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ ShallowWrapper {
type="button"
>
<Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -115,6 +116,7 @@ ShallowWrapper {
isAria={true}
name="cancel_24"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand Down Expand Up @@ -278,6 +280,7 @@ ShallowWrapper {
type="button"
>
<Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -286,6 +289,7 @@ ShallowWrapper {
isAria={true}
name="cancel_24"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand All @@ -310,6 +314,7 @@ ShallowWrapper {
"ariaLabel": "reject call",
"ariaLabelledBy": "",
"children": <Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -318,6 +323,7 @@ ShallowWrapper {
isAria={true}
name="cancel_24"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand Down Expand Up @@ -349,6 +355,7 @@ ShallowWrapper {
"key": undefined,
"nodeType": "class",
"props": Object {
"append": false,
"ariaLabel": null,
"buttonClassName": "",
"className": "",
Expand All @@ -357,6 +364,7 @@ ShallowWrapper {
"isAria": true,
"name": "cancel_24",
"onClick": null,
"prepend": false,
"size": null,
"sizeOverride": false,
"style": null,
Expand Down Expand Up @@ -448,6 +456,7 @@ ShallowWrapper {
type="button"
>
<Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -456,6 +465,7 @@ ShallowWrapper {
isAria={true}
name="cancel_24"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand Down Expand Up @@ -619,6 +629,7 @@ ShallowWrapper {
type="button"
>
<Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -627,6 +638,7 @@ ShallowWrapper {
isAria={true}
name="cancel_24"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand All @@ -651,6 +663,7 @@ ShallowWrapper {
"ariaLabel": "reject call",
"ariaLabelledBy": "",
"children": <Icon
append={false}
ariaLabel={null}
buttonClassName=""
className=""
Expand All @@ -659,6 +672,7 @@ ShallowWrapper {
isAria={true}
name="cancel_24"
onClick={null}
prepend={false}
size={null}
sizeOverride={false}
style={null}
Expand Down Expand Up @@ -690,6 +704,7 @@ ShallowWrapper {
"key": undefined,
"nodeType": "class",
"props": Object {
"append": false,
"ariaLabel": null,
"buttonClassName": "",
"className": "",
Expand All @@ -698,6 +713,7 @@ ShallowWrapper {
"isAria": true,
"name": "cancel_24",
"onClick": null,
"prepend": false,
"size": null,
"sizeOverride": false,
"style": null,
Expand Down
Loading

0 comments on commit 33e7a13

Please sign in to comment.