Skip to content

Commit 482e824

Browse files
authored
fix(icon-button): centre icon (#828)
* fix(icon-button): add flex to center icon
1 parent 0c45f89 commit 482e824

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.size-snapshot.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"dist/ui-kit.esm.js": {
3-
"bundled": 866794,
4-
"minified": 596086,
5-
"gzipped": 121167,
3+
"bundled": 866786,
4+
"minified": 596078,
5+
"gzipped": 121176,
66
"treeshaked": {
77
"rollup": {
8-
"code": 429620,
8+
"code": 429612,
99
"import_statements": 919
1010
},
1111
"webpack": {
12-
"code": 453947
12+
"code": 453939
1313
}
1414
}
1515
}

src/components/buttons/icon-button/icon-button.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export const IconButton = props => {
4848
onMouseOut={props.handleMouseOut}
4949
css={[
5050
css`
51+
display: flex;
5152
border: 1px solid ${vars.colorSurface};
52-
display: inline-block;
5353
background-color: ${vars.colorSurface};
5454
box-shadow: ${vars.shadow7};
5555
color: ${vars.colorSolid};

0 commit comments

Comments
 (0)