@ecl/mega-menu 5.0.0-alpha.15 → 5.0.0-alpha.17

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.
@@ -134,6 +134,7 @@
134
134
  {% include '@ecl/button/button.html.twig' with _toggle|merge({
135
135
  type: 'button',
136
136
  variant: 'tertiary',
137
+ style: 'neutral',
137
138
  icon_position: 'before',
138
139
  icon: _toggle_icon,
139
140
  hide_label: true,
package/mega-menu.js CHANGED
@@ -895,7 +895,6 @@ export class MegaMenu {
895
895
  } else {
896
896
  const subList = queryOne('.ecl-mega-menu__sublist', item);
897
897
  if (subList && this.openPanel.num === 1) {
898
- console.log('dovrei...');
899
898
  const subListRect = subList.getBoundingClientRect();
900
899
  const subListRectTop = subListRect.top;
901
900
  subList.classList.add('ecl-mega-menu__sublist--scrollable');
@@ -1361,9 +1360,9 @@ export class MegaMenu {
1361
1360
  if (this.header) {
1362
1361
  this.header.classList.add('ecl-site-header--open-menu-start');
1363
1362
  }
1364
- this.positionMenuOverlay();
1365
1363
  }
1366
1364
 
1365
+ this.positionMenuOverlay();
1367
1366
  this.trigger('onBack', { level: level2 ? 2 : 1 });
1368
1367
  }
1369
1368
 
package/mega-menu.scss CHANGED
@@ -986,6 +986,10 @@ $mega-menu: null !default;
986
986
  @include with-scrollbar;
987
987
  }
988
988
 
989
+ .ecl-mega-menu__sublist--scrollable {
990
+ @include with-scrollbar;
991
+ }
992
+
989
993
  .ecl-mega-menu__mega--level-2 {
990
994
  margin-top: map.get($mega-menu, 'mobile', 'spacing-top-level-2');
991
995
 
@@ -1515,7 +1519,7 @@ $mega-menu: null !default;
1515
1519
  }
1516
1520
  }
1517
1521
 
1518
- @include breakpoints.up('xxl') {
1522
+ @media (width >= 1368px) {
1519
1523
  .ecl-mega-menu:not(
1520
1524
  .ecl-mega-menu--forced-mobile,
1521
1525
  .ecl-mega-menu--forced-close
@@ -1537,7 +1541,8 @@ $mega-menu: null !default;
1537
1541
  > .ecl-container {
1538
1542
  > .ecl-mega-menu__info {
1539
1543
  box-shadow: none;
1540
- border-radius: 0px 4px 4px 0px;
1544
+ border-radius: 0px map.get($theme, 'border-radius', 's')
1545
+ map.get($theme, 'border-radius', 's') 0px;
1541
1546
  left: map.get(
1542
1547
  $mega-menu,
1543
1548
  'desktop',
@@ -1631,7 +1636,7 @@ $mega-menu: null !default;
1631
1636
  }
1632
1637
  }
1633
1638
 
1634
- @include breakpoints.up('xxl') {
1639
+ @media (width >= 1368px) {
1635
1640
  .ecl-mega-menu:not(
1636
1641
  .ecl-mega-menu--forced-mobile,
1637
1642
  .ecl-mega-menu--forced-close
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ecl/mega-menu",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "5.0.0-alpha.15",
5
+ "version": "5.0.0-alpha.17",
6
6
  "description": "ECL Mega Menu",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -11,12 +11,12 @@
11
11
  "module": "mega-menu.js",
12
12
  "style": "mega-menu.scss",
13
13
  "dependencies": {
14
- "@ecl/button": "5.0.0-alpha.15",
15
- "@ecl/dom-utils": "5.0.0-alpha.15",
16
- "@ecl/event-manager": "5.0.0-alpha.15",
17
- "@ecl/link": "5.0.0-alpha.15",
18
- "@ecl/picture": "5.0.0-alpha.15",
19
- "bowser": "2.11.0",
14
+ "@ecl/button": "5.0.0-alpha.17",
15
+ "@ecl/dom-utils": "5.0.0-alpha.17",
16
+ "@ecl/event-manager": "5.0.0-alpha.17",
17
+ "@ecl/link": "5.0.0-alpha.17",
18
+ "@ecl/picture": "5.0.0-alpha.17",
19
+ "bowser": "2.12.1",
20
20
  "focus-trap": "7.6.5"
21
21
  },
22
22
  "repository": {
@@ -33,5 +33,5 @@
33
33
  "design-system",
34
34
  "twig"
35
35
  ],
36
- "gitHead": "6004e147f949c0fbb2278650d59a1b8c249653c5"
36
+ "gitHead": "9f3b8df2dd9b9abc25aacbd0aa68f324da01fa3e"
37
37
  }