diff --git a/packages/core/content-type-builder/admin/src/components/AttributeIcon/index.js b/packages/core/content-type-builder/admin/src/components/AttributeIcon/index.js index c0c37e443a..33b137ea28 100644 --- a/packages/core/content-type-builder/admin/src/components/AttributeIcon/index.js +++ b/packages/core/content-type-builder/admin/src/components/AttributeIcon/index.js @@ -53,10 +53,7 @@ const iconByTypes = { }; const IconBox = styled(Box)` - width: ${pxToRem(32)}; - height: ${pxToRem(24)}; box-sizing: content-box; - flex-shrink: 0; `; const AttributeIcon = ({ type, customField, ...rest }) => { @@ -76,7 +73,9 @@ const AttributeIcon = ({ type, customField, ...rest }) => { return null; } - return ; + return ( + + ); }; AttributeIcon.defaultProps = { diff --git a/packages/core/content-type-builder/admin/src/components/AttributeOptions/tests/__snapshots__/index.test.js.snap b/packages/core/content-type-builder/admin/src/components/AttributeOptions/tests/__snapshots__/index.test.js.snap index a9cf4266ef..174caa34cf 100644 --- a/packages/core/content-type-builder/admin/src/components/AttributeOptions/tests/__snapshots__/index.test.js.snap +++ b/packages/core/content-type-builder/admin/src/components/AttributeOptions/tests/__snapshots__/index.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` renders and matches the snapshot 1`] = ` -.c26 { +.c27 { border: 0; -webkit-clip: rect(0 0 0 0); clip: rect(0 0 0 0); @@ -39,11 +39,19 @@ exports[` renders and matches the snapshot 1`] = ` border-radius: 4px; } -.c22 { +.c21 { + width: 2rem; + height: 1.5rem; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; +} + +.c23 { padding-left: 16px; } -.c25 { +.c26 { padding-bottom: 4px; padding-left: 8px; } @@ -117,14 +125,14 @@ exports[` renders and matches the snapshot 1`] = ` color: #666687; } -.c23 { +.c24 { font-size: 0.875rem; line-height: 1.43; font-weight: 600; color: #32324d; } -.c24 { +.c25 { font-size: 0.75rem; line-height: 1.33; color: #666687; @@ -175,9 +183,7 @@ exports[` renders and matches the snapshot 1`] = ` max-width: 100%; } -.c21 { - width: 2rem; - height: 1.5rem; +.c22 { box-sizing: content-box; } @@ -307,11 +313,11 @@ exports[` renders and matches the snapshot 1`] = ` >
text @@ -344,7 +350,7 @@ exports[` renders and matches the snapshot 1`] = ` class="c20" > A type for modeling data @@ -363,7 +369,7 @@ exports[` renders and matches the snapshot 1`] = ` style="height: 100%;" >
renders and matches the snapshot 1`] = `
renders and matches the snapshot 1`] = ` class="c0 c25" >
@@ -3776,10 +3782,10 @@ exports[` renders and matches the snapshot 1`] = ` style="position: relative;" >
renders and matches the snapshot 1`] = ` > name @@ -3830,7 +3836,7 @@ exports[` renders and matches the snapshot 1`] = `
Text   @@ -3843,19 +3849,19 @@ exports[` renders and matches the snapshot 1`] = ` role="button" >
Email   @@ -3985,19 +3991,19 @@ exports[` renders and matches the snapshot 1`] = ` role="button" >
Number   @@ -4127,19 +4133,19 @@ exports[` renders and matches the snapshot 1`] = ` role="button" >