gatsby-core-theme 23.0.1 → 23.0.2

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
@@ -1,3 +1,13 @@
1
+ ## [23.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v23.0.1...v23.0.2) (2023-06-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix for ltr sites ([cce6e0d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/cce6e0dc0d96250f1cf7f79e1a80d38250d7a8e2))
7
+
8
+
9
+ * Merge branch 'tm-3475-main-menu' into 'master' ([93f61fb](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/93f61fb0644bf8c7ace8e0cf0ed455f8e623207b))
10
+
1
11
  ## [23.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v23.0.0...v23.0.1) (2023-06-23)
2
12
 
3
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "23.0.1",
3
+ "version": "23.0.2",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -41,19 +41,15 @@ const Items = ({
41
41
 
42
42
  const onClick = (e) => {
43
43
  const { target } = e;
44
- const { width } = target.getBoundingClientRect();
45
44
 
46
- // check if clicked within the arrow area which has a padding of 4.8rem on the li tag
47
- if (e.nativeEvent.layerX > width - dropdownButtonWidth) {
48
- // check if multiple submenus can be opened at same time, if not close them
49
- if (!canOpenAllSubMenus) {
50
- closeOtherMenus(target);
51
- }
52
-
53
- // toggle the clicked menu item
54
- target.classList.toggle(styles.showSubMenu);
55
- target.getElementsByTagName('UL')[0]?.classList.toggle(styles.show);
45
+ // check if multiple submenus can be opened at same time, if not close them
46
+ if (!canOpenAllSubMenus) {
47
+ closeOtherMenus(target);
56
48
  }
49
+
50
+ // toggle the clicked menu item
51
+ target.classList.toggle(styles.showSubMenu);
52
+ target.getElementsByTagName('UL')[0]?.classList.toggle(styles.show);
57
53
  };
58
54
 
59
55
  if (item.children) {