@eeacms/volto-marine-policy 1.1.1 → 1.1.3

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,7 +4,18 @@ 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
- ### [1.1.1](https://github.com/eea/volto-marine-policy/compare/1.1.0...1.1.1) - 18 April 2024
7
+ ### [1.1.3](https://github.com/eea/volto-marine-policy/compare/1.1.2...1.1.3) - 24 April 2024
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: add custom font-size to menu-items refs#268362 [nileshgulia1 - [`71abd79`](https://github.com/eea/volto-marine-policy/commit/71abd79cae07ec940fce0fc4e25687f8b99f6ed2)]
12
+
13
+ ### [1.1.2](https://github.com/eea/volto-marine-policy/compare/1.1.1...1.1.2) - 24 April 2024
14
+
15
+ #### :hammer_and_wrench: Others
16
+
17
+ - update header customizations with eea design, fix logo width [nileshgulia1 - [`8187c47`](https://github.com/eea/volto-marine-policy/commit/8187c47c860a7efda632ed050d854e6a42e7e3a0)]
18
+ ### [1.1.1](https://github.com/eea/volto-marine-policy/compare/1.1.0...1.1.1) - 19 April 2024
8
19
 
9
20
  #### :rocket: New Features
10
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-marine-policy",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "@eeacms/volto-marine-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -262,27 +262,29 @@ const Main = ({
262
262
  <Grid.Column mobile={4} tablet={4} computer={8}>
263
263
  <div className={inverted ? 'main-menu inverted' : 'main-menu'}>
264
264
  {menuItems && (
265
- <ul
266
- className="ui text eea-main-menu tablet or lower hidden menu"
267
- ref={desktopMenuRef}
268
- id={'navigation'}
269
- >
270
- {menuItems.map((item) => (
271
- <Menu.Item
272
- name={item['@id'] || item.url}
273
- key={item['@id'] || item.url}
274
- as={'li'}
275
- active={
276
- activeItem.indexOf(item['@id']) !== -1 ||
277
- activeItem.indexOf(item.url) !== -1
278
- }
279
- >
280
- {renderGlobalMenuItem(item, {
281
- onClick: menuOnClick,
282
- })}
283
- </Menu.Item>
284
- ))}
285
- </ul>
265
+ <nav aria-label={'Main'} className="main-nav">
266
+ <ul
267
+ className="ui text eea-main-menu tablet or lower hidden menu"
268
+ ref={desktopMenuRef}
269
+ id={'navigation'}
270
+ >
271
+ {menuItems.map((item) => (
272
+ <Menu.Item
273
+ name={item['@id'] || item.url}
274
+ key={item['@id'] || item.url}
275
+ as={'li'}
276
+ active={
277
+ activeItem.indexOf(item['@id']) !== -1 ||
278
+ activeItem.indexOf(item.url) !== -1
279
+ }
280
+ >
281
+ {renderGlobalMenuItem(item, {
282
+ onClick: menuOnClick,
283
+ })}
284
+ </Menu.Item>
285
+ ))}
286
+ </ul>
287
+ </nav>
286
288
  )}
287
289
  {!hideSearch && (
288
290
  <button
@@ -1,20 +1,3 @@
1
1
  /*----------------------------------------------------------------------------
2
2
  HEADER MAIN BAR DESKTOP
3
3
  ----------------------------------------------------------------------------*/
4
-
5
- #main {
6
- .main.bar {
7
- .ui.container {
8
- .main-menu {
9
- .item:first-child {
10
- display: flex !important;
11
- }
12
- }
13
-
14
- .ui.text.menu {
15
- flex-wrap: wrap;
16
- justify-content: end;
17
- }
18
- }
19
- }
20
- }
@@ -5,3 +5,4 @@
5
5
  /* Search box */
6
6
  // @searchBoxBackgroundGradient : linear-gradient(45deg, @primaryColor 12%, @secondaryColor 80%);
7
7
  // @megaMenuBackgroundColor : linear-gradient(45deg, @primaryColor 12%, @secondaryColor 80%);
8
+ @mainMenuItemFontSize : ~"min(max(0.875rem, 1.5vw), 1.05rem)";
@@ -53,7 +53,7 @@ body {
53
53
  // Header
54
54
  @media only screen and (min-width: 992px) {
55
55
  .eea.header .eea-logo {
56
- max-width: 350px;
56
+ max-width: 330px;
57
57
  }
58
58
  }
59
59