@comicrelief/component-library 8.13.4 → 8.13.6

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.
@@ -15,7 +15,7 @@ const Header2025Wrapper = exports.Header2025Wrapper = _styledComponents.default.
15
15
  })).withConfig({
16
16
  displayName: "Header2025style__Header2025Wrapper",
17
17
  componentId: "sc-7gs40r-0"
18
- })(["position:relative;background-color:", ";padding:0;height:75px;@media ", "{height:auto;}", ";"], _ref => {
18
+ })(["position:relative;background-color:", ";padding:0;height:75px;@media ", "{height:86px;}", ";"], _ref => {
19
19
  let {
20
20
  theme
21
21
  } = _ref;
@@ -29,7 +29,7 @@ const Header2025Wrapper = exports.Header2025Wrapper = _styledComponents.default.
29
29
  let {
30
30
  showBoxShadow
31
31
  } = _ref3;
32
- return showBoxShadow && (0, _styledComponents.css)(["box-shadow:0px 13px 15px 0 rgba(0,0,0,0.15);"]);
32
+ return showBoxShadow && (0, _styledComponents.css)(["box-shadow:0px 13px 15px 0 rgba(0,0,0,0.05);"]);
33
33
  });
34
34
  const InnerWrapper = exports.InnerWrapper = _styledComponents.default.div.withConfig({
35
35
  displayName: "Header2025style__InnerWrapper",
@@ -52,7 +52,7 @@ const Brand = exports.Brand = _styledComponents.default.div.withConfig({
52
52
  const DonateButtonWrapperTop = exports.DonateButtonWrapperTop = _styledComponents.default.div.withConfig({
53
53
  displayName: "Header2025style__DonateButtonWrapperTop",
54
54
  componentId: "sc-7gs40r-3"
55
- })(["width:100px;display:flex;justify-content:center;margin-left:5px;a{width:100%;transition:width 0.4s cubic-bezier(0.5,1.5,0.5,0.80);&:hover,&:focus{width:100%;box-shadow:rgba(0,0,0,0.1) 0 0 20px 0;}}"]);
55
+ })(["width:100px;display:flex;justify-content:center;margin-left:5px;height:2.8rem;a{width:100%;height:inherit;transition:width 0.4s cubic-bezier(0.5,1.5,0.5,0.80);&:hover,&:focus{width:100%;box-shadow:rgba(0,0,0,0.1) 0 0 20px 0;}}"]);
56
56
  const Header2025MetaIcons = exports.Header2025MetaIcons = _styledComponents.default.div.withConfig({
57
57
  displayName: "Header2025style__Header2025MetaIcons",
58
58
  componentId: "sc-7gs40r-4"
@@ -28,7 +28,7 @@ const HeaderNav2025 = _ref => {
28
28
  } = navItems;
29
29
  const [isExpandable, setIsExpandable] = (0, _react.useState)(false);
30
30
  const [openedSubMenu, setOpenedSubMenu] = (0, _react.useState)({});
31
- const [isNotDesktop, setIsNotDesktop] = (0, _react.useState)(null);
31
+ const [isNotDesktop, setIsNotDesktop] = (0, _react.useState)(false);
32
32
  const [processedItems, setProcessedItems] = (0, _react.useState)(null);
33
33
  const [showMoreNav, setShowMoreNav] = (0, _react.useState)(false);
34
34
  let theseGroups = null;
@@ -59,17 +59,20 @@ const HeaderNav2025 = _ref => {
59
59
  };
60
60
 
61
61
  // Process the nav items on initial mount:
62
- (0, _react.useEffect)(() => {
63
- // Divide up nav items accordingly and determine breakpoint,
64
- // assigned as local vars since useState won't be ready in time below:
62
+ (0, _react.useMemo)(() => {
63
+ // Divide up nav items accordingly
65
64
  const theseItems = (0, _navHelper.MoreNavPreProcess)(menuGroups, characterLimit);
66
- const notDesktop = window.innerWidth < _allBreakpoints.breakpointValues.Nav;
67
65
  setProcessedItems(theseItems);
66
+ }, [menuGroups, characterLimit]);
67
+
68
+ // Determine which nav we should use only once 'window' exists:
69
+ (0, _react.useEffect)(() => {
70
+ const notDesktop = window.innerWidth < _allBreakpoints.breakpointValues.Nav;
68
71
  setIsNotDesktop(notDesktop);
69
72
 
70
73
  // Use these flags to detemine if we render the More nav or not:
71
- setShowMoreNav(!notDesktop && theseItems.moreNavGroups.length);
72
- }, [menuGroups, characterLimit]);
74
+ setShowMoreNav(!notDesktop && processedItems.moreNavGroups.length);
75
+ }, [processedItems]);
73
76
 
74
77
  // Attach eventListener on mount and after potential changes
75
78
  // to showMoreNav triggered by a window resize:
@@ -92,7 +92,7 @@ const Nav = exports.Nav = _styledComponents.default.nav.withConfig({
92
92
  const SubNavMenu = exports.SubNavMenu = _styledComponents.default.ul.withConfig({
93
93
  displayName: "HeaderNav2025style__SubNavMenu",
94
94
  componentId: "sc-xflhtq-2"
95
- })(["visibility:", ";display:", ";padding:0;position:relative;list-style:none outside;left:0;top:0;flex-direction:column;justify-content:center;align-items:center;background-color:", ";overflow:hidden;border-top:1px solid ", ";@media ", "{display:flex;width:330px;height:auto;padding:0;position:absolute;top:86px;left:-42px;border-radius:0 0 25px 25px;transition:opacity ", "s linear;opacity:0;box-shadow:0px 13px 15px 0 rgba(0,0,0,0.15);}"], _ref13 => {
95
+ })(["visibility:", ";display:", ";padding:0;position:relative;list-style:none outside;left:0;top:0;flex-direction:column;justify-content:center;align-items:center;background-color:", ";overflow:hidden;border-top:1px solid ", ";@media ", "{display:flex;width:330px;height:auto;padding:0;position:absolute;top:86px;left:-29px;border-radius:0 0 25px 25px;transition:opacity ", "s linear;opacity:0;box-shadow:0px 13px 15px 0 rgba(0,0,0,0.05);}"], _ref13 => {
96
96
  let {
97
97
  isSubMenuOpen
98
98
  } = _ref13;
@@ -138,11 +138,16 @@ const SubNavItem = exports.SubNavItem = _styledComponents.default.li.withConfig(
138
138
  const SubNavLink = exports.SubNavLink = (0, _styledComponents.default)(NavLinkClass).withConfig({
139
139
  displayName: "HeaderNav2025style__SubNavLink",
140
140
  componentId: "sc-xflhtq-4"
141
- })(["padding:20px 25px 22px 42px;color:", ";height:auto;position:relative;"], _ref19 => {
141
+ })(["padding:20px 25px 22px 42px;color:", ";height:auto;position:relative;@media ", "{padding:20px 30px 22px;}"], _ref19 => {
142
142
  let {
143
143
  theme
144
144
  } = _ref19;
145
145
  return theme.color('black');
146
+ }, _ref20 => {
147
+ let {
148
+ theme
149
+ } = _ref20;
150
+ return theme.allBreakpoints('Nav');
146
151
  });
147
152
 
148
153
  /**
@@ -151,20 +156,20 @@ const SubNavLink = exports.SubNavLink = (0, _styledComponents.default)(NavLinkCl
151
156
  const NavMenu = exports.NavMenu = _styledComponents.default.ul.withConfig({
152
157
  displayName: "HeaderNav2025style__NavMenu",
153
158
  componentId: "sc-xflhtq-5"
154
- })(["background-color:", ";list-style:none outside;padding:0;margin:0;@media ", "{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;background-color:", ";}"], _ref20 => {
159
+ })(["background-color:", ";list-style:none outside;padding:0;margin:0;@media ", "{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;background-color:", ";}"], _ref21 => {
155
160
  let {
156
161
  theme
157
- } = _ref20;
162
+ } = _ref21;
158
163
  return theme.color('white');
159
- }, _ref21 => {
164
+ }, _ref22 => {
160
165
  let {
161
166
  theme
162
- } = _ref21;
167
+ } = _ref22;
163
168
  return theme.allBreakpoints('Nav');
164
- }, _ref22 => {
169
+ }, _ref23 => {
165
170
  let {
166
171
  theme
167
- } = _ref22;
172
+ } = _ref23;
168
173
  return theme.color('white');
169
174
  });
170
175
 
@@ -174,45 +179,45 @@ const NavMenu = exports.NavMenu = _styledComponents.default.ul.withConfig({
174
179
  const NavLink = exports.NavLink = (0, _styledComponents.default)(NavLinkClass).withConfig({
175
180
  displayName: "HeaderNav2025style__NavLink",
176
181
  componentId: "sc-xflhtq-6"
177
- })(["display:flex;gap:4px;font-family:", ";", " @media ", "{padding:10px 0px 10px 0;height:auto;", " :hover,:focus-within,:focus{+ ", "{display:flex;opacity:1;}}}@media ", "{", "}"], _ref23 => {
182
+ })(["display:flex;gap:4px;font-family:", ";", " @media ", "{padding:10px 0px 10px 0;height:auto;", " :hover,:focus-within,:focus{+ ", "{display:flex;opacity:1;}}}@media ", "{", "}"], _ref24 => {
178
183
  let {
179
184
  theme
180
- } = _ref23;
185
+ } = _ref24;
181
186
  return theme.fontFamilies(theme.font.regular);
182
- }, _ref24 => {
187
+ }, _ref25 => {
183
188
  let {
184
189
  isExpanded,
185
190
  theme
186
- } = _ref24;
191
+ } = _ref25;
187
192
  return isExpanded && (0, _styledComponents.css)(["&,&:hover,&:focus-within,&:focus{color:", ";}"], theme.color('red'));
188
- }, _ref25 => {
193
+ }, _ref26 => {
189
194
  let {
190
195
  theme
191
- } = _ref25;
196
+ } = _ref26;
192
197
  return theme.allBreakpoints('Nav');
193
- }, _ref26 => {
198
+ }, _ref27 => {
194
199
  let {
195
200
  hasSubMenu
196
- } = _ref26;
201
+ } = _ref27;
197
202
  return hasSubMenu && (0, _styledComponents.css)(["padding:10px 14px 10px 0;"]);
198
- }, SubNavMenu, _ref27 => {
203
+ }, SubNavMenu, _ref28 => {
199
204
  let {
200
205
  theme
201
- } = _ref27;
206
+ } = _ref28;
202
207
  return theme.allBreakpoints('NavWide');
203
- }, _ref28 => {
208
+ }, _ref29 => {
204
209
  let {
205
210
  hasSubMenu
206
- } = _ref28;
211
+ } = _ref29;
207
212
  return hasSubMenu && (0, _styledComponents.css)(["padding:10px 16px 10px 0;"]);
208
213
  });
209
214
  const DesktopNavLink = exports.DesktopNavLink = (0, _styledComponents.default)(NavLink).withConfig({
210
215
  displayName: "HeaderNav2025style__DesktopNavLink",
211
216
  componentId: "sc-xflhtq-7"
212
- })(["&,&:hover,&:focus,&:focus-within{background-color:", ";}"], _ref29 => {
217
+ })(["&,&:hover,&:focus,&:focus-within{background-color:", ";}"], _ref30 => {
213
218
  let {
214
219
  theme
215
- } = _ref29;
220
+ } = _ref30;
216
221
  return theme.color('white');
217
222
  });
218
223
 
@@ -222,39 +227,39 @@ const DesktopNavLink = exports.DesktopNavLink = (0, _styledComponents.default)(N
222
227
  const NavItem = exports.NavItem = _styledComponents.default.li.withConfig({
223
228
  displayName: "HeaderNav2025style__NavItem",
224
229
  componentId: "sc-xflhtq-8"
225
- })(["", ";position:relative;font-weight:700;border-bottom:1px solid ", ";li{span{border-bottom:none;padding-bottom:0;}:hover,:focus,:focus-within{span{border-bottom:none;padding-bottom:0;}}}span > a > div{transition:transform 0.35s cubic-bezier(0.41,1.64,0.41,0.8);}:hover,:focus,:focus-within{li{span{border-bottom:none;padding-bottom:0;}}span > a{color:", ";> div{transform:rotate(-180deg);img{filter:invert(0.5) sepia(1) saturate(100) hue-rotate(20deg);}}}}@media ", "{margin:0 22px 0 0;padding:25px 0px;border-bottom:none;:hover,:focus,:focus-within{> ", ",:focus-within > ", "{visibility:visible;opacity:1;display:flex;}}:hover,:focus,:focus-within{background-color:transparent;", ";span{border-bottom:2px solid ", ";padding-bottom:2px;}", "{display:flex;opacity:1;visibility:visible;flex-direction:column;}}}@media ", "{margin:0 20px 0 0;}"], (0, _zIndex.default)('medium'), _ref30 => {
230
+ })(["", ";position:relative;font-weight:700;border-bottom:1px solid ", ";li{span{border-bottom:none;padding-bottom:0;}:hover,:focus,:focus-within{span{border-bottom:none;padding-bottom:0;}}}span > a > div{transition:transform 0.35s cubic-bezier(0.41,1.64,0.41,0.8);}:hover,:focus,:focus-within{li{span{border-bottom:none;padding-bottom:0;}}span > a{color:", ";> div{transform:rotate(-180deg);img{filter:invert(0.5) sepia(1) saturate(100) hue-rotate(20deg);}}}}@media ", "{margin:0 22px 0 0;padding:25px 0px;border-bottom:none;:hover,:focus,:focus-within{> ", ",:focus-within > ", "{visibility:visible;opacity:1;display:flex;}}:hover,:focus,:focus-within{background-color:transparent;", ";span{border-bottom:2px solid ", ";padding-bottom:2px;}", "{display:flex;opacity:1;visibility:visible;flex-direction:column;}}}@media ", "{margin:0 20px 0 0;}"], (0, _zIndex.default)('medium'), _ref31 => {
226
231
  let {
227
232
  theme
228
- } = _ref30;
233
+ } = _ref31;
229
234
  return theme.color('grey_medium');
230
- }, _ref31 => {
235
+ }, _ref32 => {
231
236
  let {
232
237
  theme
233
- } = _ref31;
238
+ } = _ref32;
234
239
  return theme.color('red');
235
- }, _ref32 => {
240
+ }, _ref33 => {
236
241
  let {
237
242
  theme
238
- } = _ref32;
243
+ } = _ref33;
239
244
  return theme.allBreakpoints('Nav');
240
- }, SubNavMenu, SubNavMenu, (0, _zIndex.default)('high'), _ref33 => {
245
+ }, SubNavMenu, SubNavMenu, (0, _zIndex.default)('high'), _ref34 => {
241
246
  let {
242
247
  theme
243
- } = _ref33;
248
+ } = _ref34;
244
249
  return theme.color('black');
245
- }, SubNavMenu, _ref34 => {
250
+ }, SubNavMenu, _ref35 => {
246
251
  let {
247
252
  theme
248
- } = _ref34;
253
+ } = _ref35;
249
254
  return theme.allBreakpoints('NavWide');
250
255
  });
251
256
  const ChevronWrapper = exports.ChevronWrapper = _styledComponents.default.div.withConfig({
252
257
  displayName: "HeaderNav2025style__ChevronWrapper",
253
258
  componentId: "sc-xflhtq-9"
254
- })(["width:16px;position:absolute;top:20px;right:22px;height:16px;img{width:100%;display:block;height:auto;}@media ", "{position:absolute;top:10px;right:0;width:10px;}"], _ref35 => {
259
+ })(["width:16px;position:absolute;top:20px;right:22px;height:16px;img{width:100%;display:block;height:auto;}@media ", "{position:absolute;top:10px;right:0;width:10px;}"], _ref36 => {
255
260
  let {
256
261
  theme
257
- } = _ref35;
262
+ } = _ref36;
258
263
  return theme.allBreakpoints('Nav');
259
264
  });
260
265
 
@@ -262,47 +267,47 @@ const ChevronWrapper = exports.ChevronWrapper = _styledComponents.default.div.wi
262
267
  const NavMetaIcons = exports.NavMetaIcons = _styledComponents.default.div.withConfig({
263
268
  displayName: "HeaderNav2025style__NavMetaIcons",
264
269
  componentId: "sc-xflhtq-10"
265
- })(["width:auto;display:flex;align-items:center;flex-direction:column;background-color:inherit;> div{height:60px;width:100%;display:flex;border-bottom:1px solid ", ";> a{height:inherit;width:100%;padding:15px 20px;position:relative;&:after{position:absolute;right:20px;top:50%;transform:translateY(-50%);content:\"\";width:20px;height:20px;background-image:url(", ");background-size:100%;background-repeat:no-repeat;}img{padding:5px;height:35px;width:35px;}span{transition:color 0.15s ease-out;}@media ", "{&:focus,&:hover{span{color:", ";}}}}&:first-child{margin-top:20px;}}@media ", "{display:none;}"], _ref36 => {
270
+ })(["width:auto;display:flex;align-items:center;flex-direction:column;background-color:inherit;> div{height:60px;width:100%;display:flex;border-bottom:1px solid ", ";> a{height:inherit;width:100%;padding:15px 20px;position:relative;&:after{position:absolute;right:20px;top:50%;transform:translateY(-50%);content:\"\";width:20px;height:20px;background-image:url(", ");background-size:100%;background-repeat:no-repeat;}img{padding:5px;height:35px;width:35px;}span{transition:color 0.15s ease-out;}@media ", "{&:focus,&:hover{span{color:", ";}}}}&:first-child{margin-top:20px;}}@media ", "{display:none;}"], _ref37 => {
266
271
  let {
267
272
  theme
268
- } = _ref36;
273
+ } = _ref37;
269
274
  return theme.color('grey_medium');
270
- }, _arrowRight.default, _ref37 => {
275
+ }, _arrowRight.default, _ref38 => {
271
276
  let {
272
277
  theme
273
- } = _ref37;
278
+ } = _ref38;
274
279
  return theme.allBreakpoints('M');
275
- }, _ref38 => {
280
+ }, _ref39 => {
276
281
  let {
277
282
  theme
278
- } = _ref38;
283
+ } = _ref39;
279
284
  return theme.color('red');
280
- }, _ref39 => {
285
+ }, _ref40 => {
281
286
  let {
282
287
  theme
283
- } = _ref39;
288
+ } = _ref40;
284
289
  return theme.allBreakpoints('Nav');
285
290
  });
286
291
  const StyledText = exports.StyledText = (0, _styledComponents.default)(_Text.default).withConfig({
287
292
  displayName: "HeaderNav2025style__StyledText",
288
293
  componentId: "sc-xflhtq-11"
289
- })(["@media ", "{font-size:15px;}@media ", "{font-size:1rem;}"], _ref40 => {
294
+ })(["@media ", "{font-size:15px;}@media ", "{font-size:1rem;}"], _ref41 => {
290
295
  let {
291
296
  theme
292
- } = _ref40;
297
+ } = _ref41;
293
298
  return theme.allBreakpoints('Nav');
294
- }, _ref41 => {
299
+ }, _ref42 => {
295
300
  let {
296
301
  theme
297
- } = _ref41;
302
+ } = _ref42;
298
303
  return theme.allBreakpoints('NavWide');
299
304
  });
300
305
  const DonateButtonWrapperBottom = exports.DonateButtonWrapperBottom = _styledComponents.default.div.withConfig({
301
306
  displayName: "HeaderNav2025style__DonateButtonWrapperBottom",
302
307
  componentId: "sc-xflhtq-12"
303
- })(["display:flex;justify-content:center;padding:35px 20px;background-color:inherit;a{width:calc(100% - 10px);transition:width 0.35s cubic-bezier(0.5,1.5,0.5,0.9);&:hover,&:focus{width:100%;box-shadow:rgba(0,0,0,0.1) 0 0 20px 0;}}@media ", "{display:none;}"], _ref42 => {
308
+ })(["display:flex;justify-content:center;padding:35px 20px;background-color:inherit;a{width:calc(100% - 10px);transition:width 0.35s cubic-bezier(0.5,1.5,0.5,0.9);&:hover,&:focus{width:100%;box-shadow:rgba(0,0,0,0.1) 0 0 20px 0;}}@media ", "{display:none;}"], _ref43 => {
304
309
  let {
305
310
  theme
306
- } = _ref42;
311
+ } = _ref43;
307
312
  return theme.allBreakpoints('Nav');
308
313
  });
@@ -100,7 +100,7 @@ const MoreNavSubItem = exports.MoreNavSubItem = (0, _styledComponents.default)(M
100
100
  const MoreNavNestedLink = exports.MoreNavNestedLink = (0, _styledComponents.default)(_HeaderNav.NavLink).withConfig({
101
101
  displayName: "MoreNavstyle__MoreNavNestedLink",
102
102
  componentId: "sc-68lngb-6"
103
- })(["padding:20px 25px 22px 42px;> div{height:auto;}", ";"], _ref13 => {
103
+ })(["padding:20px 30px 22px 30px;> div{height:auto;}", ";"], _ref13 => {
104
104
  let {
105
105
  isSubMenuOpen
106
106
  } = _ref13;
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": "8.13.4",
4
+ "version": "8.13.6",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -14,11 +14,11 @@ const Header2025Wrapper = styled.header.attrs(() => ({
14
14
  height: 75px;
15
15
 
16
16
  @media ${({ theme }) => theme.allBreakpoints('Nav')} {
17
- height: auto;
17
+ height: 86px;
18
18
  }
19
19
 
20
20
  ${({ showBoxShadow }) => showBoxShadow && css`
21
- box-shadow: 0px 13px 15px 0 rgba(0, 0, 0, 0.15);
21
+ box-shadow: 0px 13px 15px 0 rgba(0, 0, 0, 0.05);
22
22
  `};
23
23
  `;
24
24
 
@@ -66,12 +66,13 @@ const DonateButtonWrapperTop = styled.div`
66
66
  display: flex;
67
67
  justify-content: center;
68
68
  margin-left: 5px;
69
+ height: 2.8rem;
69
70
 
70
71
  // Donate button
71
72
  a {
72
73
  width: 100%;
74
+ height: inherit;
73
75
  transition: width 0.4s cubic-bezier(0.5, 1.5, 0.5, 0.80);
74
-
75
76
  &:hover,
76
77
  &:focus {
77
78
  width: 100%;
@@ -1,4 +1,6 @@
1
- import React, { useState, useEffect, useCallback } from 'react';
1
+ import React, {
2
+ useState, useEffect, useCallback, useMemo
3
+ } from 'react';
2
4
  import PropTypes from 'prop-types';
3
5
 
4
6
  import Text from '../../../Atoms/Text/Text';
@@ -20,7 +22,7 @@ const HeaderNav2025 = ({
20
22
  const { menuGroups } = navItems;
21
23
  const [isExpandable, setIsExpandable] = useState(false);
22
24
  const [openedSubMenu, setOpenedSubMenu] = useState({});
23
- const [isNotDesktop, setIsNotDesktop] = useState(null);
25
+ const [isNotDesktop, setIsNotDesktop] = useState(false);
24
26
  const [processedItems, setProcessedItems] = useState(null);
25
27
  const [showMoreNav, setShowMoreNav] = useState(false);
26
28
  let theseGroups = null;
@@ -50,17 +52,20 @@ const HeaderNav2025 = ({
50
52
  };
51
53
 
52
54
  // Process the nav items on initial mount:
53
- useEffect(() => {
54
- // Divide up nav items accordingly and determine breakpoint,
55
- // assigned as local vars since useState won't be ready in time below:
55
+ useMemo(() => {
56
+ // Divide up nav items accordingly
56
57
  const theseItems = MoreNavPreProcess(menuGroups, characterLimit);
57
- const notDesktop = window.innerWidth < breakpointValues.Nav;
58
58
  setProcessedItems(theseItems);
59
+ }, [menuGroups, characterLimit]);
60
+
61
+ // Determine which nav we should use only once 'window' exists:
62
+ useEffect(() => {
63
+ const notDesktop = window.innerWidth < breakpointValues.Nav;
59
64
  setIsNotDesktop(notDesktop);
60
65
 
61
66
  // Use these flags to detemine if we render the More nav or not:
62
- setShowMoreNav(!notDesktop && theseItems.moreNavGroups.length);
63
- }, [menuGroups, characterLimit]);
67
+ setShowMoreNav(!notDesktop && processedItems.moreNavGroups.length);
68
+ }, [processedItems]);
64
69
 
65
70
  // Attach eventListener on mount and after potential changes
66
71
  // to showMoreNav triggered by a window resize:
@@ -121,11 +121,11 @@ const SubNavMenu = styled.ul`
121
121
  padding: 0;
122
122
  position: absolute;
123
123
  top: 86px;
124
- left: -42px;
124
+ left: -29px;
125
125
  border-radius: 0 0 25px 25px;
126
126
  transition: opacity ${transitionDuration}s linear;
127
127
  opacity: 0;
128
- box-shadow: 0px 13px 15px 0 rgba(0, 0, 0, 0.15);
128
+ box-shadow: 0px 13px 15px 0 rgba(0, 0, 0, 0.05);
129
129
  }
130
130
  `;
131
131
 
@@ -157,6 +157,11 @@ const SubNavLink = styled(NavLinkClass)`
157
157
  color: ${({ theme }) => theme.color('black')};
158
158
  height: auto;
159
159
  position: relative;
160
+
161
+ @media ${({ theme }) => theme.allBreakpoints('Nav')} {
162
+ padding: 20px 30px 22px;
163
+ }
164
+
160
165
  `;
161
166
 
162
167
  /**
@@ -164,7 +164,7 @@ const MoreNavSubItem = styled(MoreSubNavItem)`
164
164
  `;
165
165
 
166
166
  const MoreNavNestedLink = styled(NavLink)`
167
- padding: 20px 25px 22px 42px;
167
+ padding: 20px 30px 22px 30px;
168
168
 
169
169
  > div {
170
170
  height: auto;