@ecl/mega-menu 5.0.0-alpha.15 → 5.0.0-alpha.16
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/mega-menu.html.twig +1 -0
- package/mega-menu.js +1 -2
- package/mega-menu.scss +8 -3
- package/package.json +8 -8
package/mega-menu.html.twig
CHANGED
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
|
-
@
|
|
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
|
|
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
|
-
@
|
|
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.
|
|
5
|
+
"version": "5.0.0-alpha.16",
|
|
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
|
-
"@ecl/dom-utils": "5.0.0-alpha.
|
|
16
|
-
"@ecl/event-manager": "5.0.0-alpha.
|
|
17
|
-
"@ecl/link": "5.0.0-alpha.
|
|
18
|
-
"@ecl/picture": "5.0.0-alpha.
|
|
19
|
-
"bowser": "2.
|
|
14
|
+
"@ecl/button": "5.0.0-alpha.16",
|
|
15
|
+
"@ecl/dom-utils": "5.0.0-alpha.16",
|
|
16
|
+
"@ecl/event-manager": "5.0.0-alpha.16",
|
|
17
|
+
"@ecl/link": "5.0.0-alpha.16",
|
|
18
|
+
"@ecl/picture": "5.0.0-alpha.16",
|
|
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": "
|
|
36
|
+
"gitHead": "0842ff3b72ce9099c13e5407ad2b5eda9d06ba69"
|
|
37
37
|
}
|