@eeacms/volto-eea-website-theme 4.3.7 → 4.3.8
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/customizations/volto/components/theme/Header/Header.jsx +17 -1
- package/src/customizations/volto/components/theme/Header/Header.test.jsx +2 -0
- package/src/customizations/volto/components/theme/Header/LanguageSwitcher.jsx +9 -1
- package/src/customizations/volto/helpers/Html/Html.jsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [4.3.8](https://github.com/eea/volto-eea-website-theme/compare/4.3.7...4.3.8) - 9 June 2026
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: Header images unsized CLS - refs #304010 [dobri1408 - [`7074063`](https://github.com/eea/volto-eea-website-theme/commit/7074063622e187e201d9cb36b2000b29387ec0dd)]
|
|
12
|
+
|
|
7
13
|
### [4.3.7](https://github.com/eea/volto-eea-website-theme/compare/4.3.6...4.3.7) - 6 June 2026
|
|
8
14
|
|
|
9
15
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
|
@@ -224,7 +224,13 @@ const EEAHeader = ({ pathname, token, items, history, navroot, subsite }) => {
|
|
|
224
224
|
<Header menuItems={items}>
|
|
225
225
|
<Header.TopHeader>
|
|
226
226
|
<Header.TopItem className="official-union">
|
|
227
|
-
<Image
|
|
227
|
+
<Image
|
|
228
|
+
src={eeaFlag}
|
|
229
|
+
alt="European Union flag"
|
|
230
|
+
width={34}
|
|
231
|
+
height={24}
|
|
232
|
+
style={{ aspectRatio: '34 / 24' }}
|
|
233
|
+
></Image>
|
|
228
234
|
<Header.TopDropdownMenu
|
|
229
235
|
text="An official website of the European Union | How do you know?"
|
|
230
236
|
tabletText="EEA information systems"
|
|
@@ -314,6 +320,16 @@ const EEAHeader = ({ pathname, token, items, history, navroot, subsite }) => {
|
|
|
314
320
|
<Image
|
|
315
321
|
src={subsite.subsite_logo.scales.mini.download}
|
|
316
322
|
alt={subsite.title}
|
|
323
|
+
width={subsite.subsite_logo.scales.mini.width || 80}
|
|
324
|
+
height={subsite.subsite_logo.scales.mini.height || 80}
|
|
325
|
+
style={
|
|
326
|
+
(subsite.subsite_logo.scales.mini.width || 80) &&
|
|
327
|
+
(subsite.subsite_logo.scales.mini.height || 80)
|
|
328
|
+
? {
|
|
329
|
+
aspectRatio: `${subsite.subsite_logo.scales.mini.width || 80} / ${subsite.subsite_logo.scales.mini.height || 80}`,
|
|
330
|
+
}
|
|
331
|
+
: undefined
|
|
332
|
+
}
|
|
317
333
|
/>
|
|
318
334
|
) : (
|
|
319
335
|
subsite.title
|
|
@@ -51,7 +51,15 @@ const LanguageSwitcher = ({ width, history }) => {
|
|
|
51
51
|
className="item"
|
|
52
52
|
text={`${language.toUpperCase()}`}
|
|
53
53
|
mobileText={`${language.toUpperCase()}`}
|
|
54
|
-
icon={
|
|
54
|
+
icon={
|
|
55
|
+
<Image
|
|
56
|
+
src={globeIcon}
|
|
57
|
+
alt="language dropdown globe icon"
|
|
58
|
+
width={24}
|
|
59
|
+
height={24}
|
|
60
|
+
style={{ aspectRatio: '24 / 24' }}
|
|
61
|
+
/>
|
|
62
|
+
}
|
|
55
63
|
viewportWidth={width}
|
|
56
64
|
>
|
|
57
65
|
<ul
|