@comicrelief/component-library 6.1.4 → 6.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,8 +74,9 @@ var Logo = function Logo(_ref2) {
74
74
 
75
75
  Logo.defaultProps = {
76
76
  rotate: false,
77
- sizeSm: '75px',
78
- sizeMd: '75px',
77
+ sizeSm: '51px',
78
+ // - to work with the header 75px height and 12px padding
79
+ sizeMd: '70px',
79
80
  campaign: 'Comic Relief'
80
81
  };
81
82
  var _default = Logo;
@@ -14,5 +14,5 @@ it("renders correctly", function () {
14
14
  var tree = (0, _shallowWithTheme.default)( /*#__PURE__*/_react.default.createElement(_Logo.default, {
15
15
  rotate: true
16
16
  })).toJSON();
17
- expect(tree).toMatchInlineSnapshot("\n .c1 {\n object-fit: cover;\n width: 100%;\n display: block;\n height: auto;\n margin-right: 1rem;\n }\n\n .c0 {\n display: inline-block;\n z-index: 3;\n width: 75px;\n -webkit-transform: rotate(-14deg);\n -ms-transform: rotate(-14deg);\n transform: rotate(-14deg);\n vertical-align: bottom;\n }\n\n @media (min-width:1150px) {\n .c0 {\n width: 75px;\n }\n }\n\n <div\n className=\"c0\"\n rotate={1}\n >\n <img\n alt=\"Comic Relief logo\"\n className=\"c1\"\n src=\"mock.asset\"\n />\n </div>\n ");
17
+ expect(tree).toMatchInlineSnapshot("\n .c1 {\n object-fit: cover;\n width: 100%;\n display: block;\n height: auto;\n margin-right: 1rem;\n }\n\n .c0 {\n display: inline-block;\n z-index: 3;\n width: 51px;\n -webkit-transform: rotate(-14deg);\n -ms-transform: rotate(-14deg);\n transform: rotate(-14deg);\n vertical-align: bottom;\n }\n\n @media (min-width:1150px) {\n .c0 {\n width: 70px;\n }\n }\n\n <div\n className=\"c0\"\n rotate={1}\n >\n <img\n alt=\"Comic Relief logo\"\n className=\"c1\"\n src=\"mock.asset\"\n />\n </div>\n ");
18
18
  });
@@ -35,7 +35,7 @@ exports.HeaderWrapper = HeaderWrapper;
35
35
  var InnerWrapper = _styledComponents.default.div.withConfig({
36
36
  displayName: "Headerstyle__InnerWrapper",
37
37
  componentId: "sc-11ghppe-1"
38
- })(["display:flex;align-items:center;height:100%;padding:0;cursor:pointer;max-width:", ";@media ", "{margin:0 auto;}"], _size.container.large, function (_ref3) {
38
+ })(["display:flex;align-items:center;height:100%;padding:0 12px;cursor:pointer;max-width:", ";@media ", "{margin:0 auto;}"], _size.container.large, function (_ref3) {
39
39
  var theme = _ref3.theme;
40
40
  return theme.breakpoint('nav');
41
41
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "6.1.4",
4
+ "version": "6.1.5",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -67,8 +67,8 @@ Logo.propTypes = {
67
67
 
68
68
  Logo.defaultProps = {
69
69
  rotate: false,
70
- sizeSm: '75px',
71
- sizeMd: '75px',
70
+ sizeSm: '51px', // - to work with the header 75px height and 12px padding
71
+ sizeMd: '70px',
72
72
  campaign: 'Comic Relief'
73
73
  };
74
74
 
@@ -18,7 +18,7 @@ it("renders correctly", () => {
18
18
  .c0 {
19
19
  display: inline-block;
20
20
  z-index: 3;
21
- width: 75px;
21
+ width: 51px;
22
22
  -webkit-transform: rotate(-14deg);
23
23
  -ms-transform: rotate(-14deg);
24
24
  transform: rotate(-14deg);
@@ -27,7 +27,7 @@ it("renders correctly", () => {
27
27
 
28
28
  @media (min-width:1150px) {
29
29
  .c0 {
30
- width: 75px;
30
+ width: 70px;
31
31
  }
32
32
  }
33
33
 
@@ -21,7 +21,7 @@ const InnerWrapper = styled.div`
21
21
  display: flex;
22
22
  align-items: center;
23
23
  height: 100%;
24
- padding: 0;
24
+ padding: 0 12px;
25
25
  cursor: pointer;
26
26
  max-width: ${container.large};
27
27