@eeacms/volto-cca-policy 0.1.57 → 0.1.59

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 CHANGED
@@ -4,6 +4,22 @@ 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
+ ### [0.1.59](https://github.com/eea/volto-cca-policy/compare/0.1.58...0.1.59) - 5 January 2024
8
+
9
+ #### :nail_care: Enhancements
10
+
11
+ - change: update footer color [kreafox - [`3385e33`](https://github.com/eea/volto-cca-policy/commit/3385e3301fe8a1482a0b74feef7e0111dbf36bd9)]
12
+
13
+ ### [0.1.58](https://github.com/eea/volto-cca-policy/compare/0.1.57...0.1.58) - 4 January 2024
14
+
15
+ #### :house: Internal changes
16
+
17
+ - style: Automated code fix [eea-jenkins - [`b095dfe`](https://github.com/eea/volto-cca-policy/commit/b095dfe43952d40e4d1f1103ba134bf1319e4568)]
18
+
19
+ #### :hammer_and_wrench: Others
20
+
21
+ - Move event.preventDefault to proper location [Tiberiu Ichim - [`69731f2`](https://github.com/eea/volto-cca-policy/commit/69731f2e80179359884d961c5bc2af3eefe1fead)]
22
+ - Don't open external links in new tabs [Tiberiu Ichim - [`a29895f`](https://github.com/eea/volto-cca-policy/commit/a29895f6dd238abc5c82fccec256b871067cf2ba)]
7
23
  ### [0.1.57](https://github.com/eea/volto-cca-policy/compare/0.1.56...0.1.57) - 4 January 2024
8
24
 
9
25
  ### [0.1.56](https://github.com/eea/volto-cca-policy/compare/0.1.55...0.1.56) - 3 January 2024
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.57",
3
+ "version": "0.1.59",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -277,7 +277,7 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
277
277
  href={item.url || '/'}
278
278
  title={item.title}
279
279
  onClick={(e) => {
280
- e.preventDefault();
280
+ // debugger;
281
281
  onClick(e, item);
282
282
  }}
283
283
  >
@@ -286,6 +286,7 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
286
286
  )}
287
287
  renderMenuItem={(item, options, props) => (
288
288
  <UniversalLink
289
+ openLinkInNewTab={false}
289
290
  href={item.url || '/'}
290
291
  title={item.nav_title || item.title}
291
292
  {...(options || {})}
@@ -227,12 +227,15 @@ const Main = ({
227
227
  if (searchIsActive) setSearchIsActive(false);
228
228
  setActiveItem(item['@id'] || item.url);
229
229
  if (item.items.length) {
230
+ e.preventDefault();
230
231
  setMenuIsActive(true);
231
232
  } else {
232
233
  if (isInternalURL(item.url)) {
234
+ e.preventDefault();
233
235
  history.push(item.url);
234
236
  } else if (isClient) {
235
- window.location.replace(item.url);
237
+ // window.location.href = item.url;
238
+ // window.location.replace(item.url);
236
239
  }
237
240
  }
238
241
  };
@@ -2,5 +2,14 @@
2
2
  Footer
3
3
  *******************************/
4
4
 
5
- // @mobileFooterBackgroundGrandient : linear-gradient(45deg, @primaryColor 12%, @secondaryColor 80%);
6
- // @computerFooterBackgroundGrandient : linear-gradient(45deg, @primaryColor 12%, @secondaryColor 80%);
5
+ @mobileFooterBackgroundGradient: linear-gradient(
6
+ 212.33deg,
7
+ @secondaryColor 12%,
8
+ #004c80 80%
9
+ );
10
+
11
+ @computerFooterBackgroundGradient: linear-gradient(
12
+ 212.33deg,
13
+ @secondaryColor 12%,
14
+ #004c80 80%
15
+ );
@@ -4,4 +4,4 @@
4
4
 
5
5
  /* Search box */
6
6
  // @searchBoxBackgroundGradient : linear-gradient(45deg, @primaryColor 12%, @secondaryColor 80%);
7
- // @megaMenuBackgroundColor : linear-gradient(45deg, @primaryColor 12%, @secondaryColor 80%);
7
+ @megaMenuBackgroundColor : linear-gradient(13.69deg, @blue-5 1.17%, @secondaryColor 80%);
@@ -9,15 +9,15 @@
9
9
  --------------------*/
10
10
 
11
11
  // @primaryColor: @green-6;
12
- // @secondaryColor: @green-4;
12
+ @secondaryColor: #005c97;
13
13
 
14
14
  // @linkColor: @secondaryColor;
15
15
  // @linkHoverColor: @primaryColor;
16
16
  // @linkActiveColor: @linkHoverColor;
17
17
 
18
18
  // Toolbar
19
- @toolbarWidth : 80px;
20
- @collapsedToolbarWidth : 20px;
21
- @mobileToolbarHeight : 100px;
22
- @mobileCollapsedToolbarHeight : 20px;
23
- @sidebarWidth : 375px;
19
+ @toolbarWidth: 80px;
20
+ @collapsedToolbarWidth: 20px;
21
+ @mobileToolbarHeight: 100px;
22
+ @mobileCollapsedToolbarHeight: 20px;
23
+ @sidebarWidth: 375px;