@comicrelief/component-library 8.13.4 → 8.13.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.
- package/dist/components/Organisms/Header2025/Header2025.style.js +3 -3
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +1 -1
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +53 -48
- package/dist/components/Organisms/Header2025/HeaderNav2025/MoreNav.style.js +1 -1
- package/package.json +1 -1
- package/src/components/Organisms/Header2025/Header2025.style.js +4 -3
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.js +4 -2
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +7 -2
- package/src/components/Organisms/Header2025/HeaderNav2025/MoreNav.style.js +1 -1
|
@@ -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:
|
|
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.
|
|
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"
|
|
@@ -59,7 +59,7 @@ const HeaderNav2025 = _ref => {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
// Process the nav items on initial mount:
|
|
62
|
-
(0, _react.
|
|
62
|
+
(0, _react.useMemo)(() => {
|
|
63
63
|
// Divide up nav items accordingly and determine breakpoint,
|
|
64
64
|
// assigned as local vars since useState won't be ready in time below:
|
|
65
65
|
const theseItems = (0, _navHelper.MoreNavPreProcess)(menuGroups, characterLimit);
|
|
@@ -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:-
|
|
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:", ";}"],
|
|
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
|
-
} =
|
|
162
|
+
} = _ref21;
|
|
158
163
|
return theme.color('white');
|
|
159
|
-
},
|
|
164
|
+
}, _ref22 => {
|
|
160
165
|
let {
|
|
161
166
|
theme
|
|
162
|
-
} =
|
|
167
|
+
} = _ref22;
|
|
163
168
|
return theme.allBreakpoints('Nav');
|
|
164
|
-
},
|
|
169
|
+
}, _ref23 => {
|
|
165
170
|
let {
|
|
166
171
|
theme
|
|
167
|
-
} =
|
|
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 ", "{", "}"],
|
|
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
|
-
} =
|
|
185
|
+
} = _ref24;
|
|
181
186
|
return theme.fontFamilies(theme.font.regular);
|
|
182
|
-
},
|
|
187
|
+
}, _ref25 => {
|
|
183
188
|
let {
|
|
184
189
|
isExpanded,
|
|
185
190
|
theme
|
|
186
|
-
} =
|
|
191
|
+
} = _ref25;
|
|
187
192
|
return isExpanded && (0, _styledComponents.css)(["&,&:hover,&:focus-within,&:focus{color:", ";}"], theme.color('red'));
|
|
188
|
-
},
|
|
193
|
+
}, _ref26 => {
|
|
189
194
|
let {
|
|
190
195
|
theme
|
|
191
|
-
} =
|
|
196
|
+
} = _ref26;
|
|
192
197
|
return theme.allBreakpoints('Nav');
|
|
193
|
-
},
|
|
198
|
+
}, _ref27 => {
|
|
194
199
|
let {
|
|
195
200
|
hasSubMenu
|
|
196
|
-
} =
|
|
201
|
+
} = _ref27;
|
|
197
202
|
return hasSubMenu && (0, _styledComponents.css)(["padding:10px 14px 10px 0;"]);
|
|
198
|
-
}, SubNavMenu,
|
|
203
|
+
}, SubNavMenu, _ref28 => {
|
|
199
204
|
let {
|
|
200
205
|
theme
|
|
201
|
-
} =
|
|
206
|
+
} = _ref28;
|
|
202
207
|
return theme.allBreakpoints('NavWide');
|
|
203
|
-
},
|
|
208
|
+
}, _ref29 => {
|
|
204
209
|
let {
|
|
205
210
|
hasSubMenu
|
|
206
|
-
} =
|
|
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:", ";}"],
|
|
217
|
+
})(["&,&:hover,&:focus,&:focus-within{background-color:", ";}"], _ref30 => {
|
|
213
218
|
let {
|
|
214
219
|
theme
|
|
215
|
-
} =
|
|
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'),
|
|
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
|
-
} =
|
|
233
|
+
} = _ref31;
|
|
229
234
|
return theme.color('grey_medium');
|
|
230
|
-
},
|
|
235
|
+
}, _ref32 => {
|
|
231
236
|
let {
|
|
232
237
|
theme
|
|
233
|
-
} =
|
|
238
|
+
} = _ref32;
|
|
234
239
|
return theme.color('red');
|
|
235
|
-
},
|
|
240
|
+
}, _ref33 => {
|
|
236
241
|
let {
|
|
237
242
|
theme
|
|
238
|
-
} =
|
|
243
|
+
} = _ref33;
|
|
239
244
|
return theme.allBreakpoints('Nav');
|
|
240
|
-
}, SubNavMenu, SubNavMenu, (0, _zIndex.default)('high'),
|
|
245
|
+
}, SubNavMenu, SubNavMenu, (0, _zIndex.default)('high'), _ref34 => {
|
|
241
246
|
let {
|
|
242
247
|
theme
|
|
243
|
-
} =
|
|
248
|
+
} = _ref34;
|
|
244
249
|
return theme.color('black');
|
|
245
|
-
}, SubNavMenu,
|
|
250
|
+
}, SubNavMenu, _ref35 => {
|
|
246
251
|
let {
|
|
247
252
|
theme
|
|
248
|
-
} =
|
|
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;}"],
|
|
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
|
-
} =
|
|
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;}"],
|
|
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
|
-
} =
|
|
273
|
+
} = _ref37;
|
|
269
274
|
return theme.color('grey_medium');
|
|
270
|
-
}, _arrowRight.default,
|
|
275
|
+
}, _arrowRight.default, _ref38 => {
|
|
271
276
|
let {
|
|
272
277
|
theme
|
|
273
|
-
} =
|
|
278
|
+
} = _ref38;
|
|
274
279
|
return theme.allBreakpoints('M');
|
|
275
|
-
},
|
|
280
|
+
}, _ref39 => {
|
|
276
281
|
let {
|
|
277
282
|
theme
|
|
278
|
-
} =
|
|
283
|
+
} = _ref39;
|
|
279
284
|
return theme.color('red');
|
|
280
|
-
},
|
|
285
|
+
}, _ref40 => {
|
|
281
286
|
let {
|
|
282
287
|
theme
|
|
283
|
-
} =
|
|
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;}"],
|
|
294
|
+
})(["@media ", "{font-size:15px;}@media ", "{font-size:1rem;}"], _ref41 => {
|
|
290
295
|
let {
|
|
291
296
|
theme
|
|
292
|
-
} =
|
|
297
|
+
} = _ref41;
|
|
293
298
|
return theme.allBreakpoints('Nav');
|
|
294
|
-
},
|
|
299
|
+
}, _ref42 => {
|
|
295
300
|
let {
|
|
296
301
|
theme
|
|
297
|
-
} =
|
|
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;}"],
|
|
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
|
-
} =
|
|
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
|
|
103
|
+
})(["padding:20px 30px 22px 30px;> div{height:auto;}", ";"], _ref13 => {
|
|
104
104
|
let {
|
|
105
105
|
isSubMenuOpen
|
|
106
106
|
} = _ref13;
|
package/package.json
CHANGED
|
@@ -14,11 +14,11 @@ const Header2025Wrapper = styled.header.attrs(() => ({
|
|
|
14
14
|
height: 75px;
|
|
15
15
|
|
|
16
16
|
@media ${({ theme }) => theme.allBreakpoints('Nav')} {
|
|
17
|
-
height:
|
|
17
|
+
height: 86px;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
${({ showBoxShadow }) => showBoxShadow && css`
|
|
21
|
-
box-shadow: 0px 13px 15px 0 rgba(0, 0, 0, 0.
|
|
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, {
|
|
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';
|
|
@@ -50,7 +52,7 @@ const HeaderNav2025 = ({
|
|
|
50
52
|
};
|
|
51
53
|
|
|
52
54
|
// Process the nav items on initial mount:
|
|
53
|
-
|
|
55
|
+
useMemo(() => {
|
|
54
56
|
// Divide up nav items accordingly and determine breakpoint,
|
|
55
57
|
// assigned as local vars since useState won't be ready in time below:
|
|
56
58
|
const theseItems = MoreNavPreProcess(menuGroups, characterLimit);
|
|
@@ -121,11 +121,11 @@ const SubNavMenu = styled.ul`
|
|
|
121
121
|
padding: 0;
|
|
122
122
|
position: absolute;
|
|
123
123
|
top: 86px;
|
|
124
|
-
left: -
|
|
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.
|
|
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
|
/**
|