gatsby-core-theme 23.0.2 → 24.0.0
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,16 @@
|
|
|
1
|
+
# [24.0.0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v23.0.2...v24.0.0) (2023-06-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Code Refactoring
|
|
5
|
+
|
|
6
|
+
* change api url ([cfa8d4c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/cfa8d4cedeb519ce9a1447ad38c15cc027044235))
|
|
7
|
+
* changes to image display viewport ([6b93f8a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6b93f8a0ad851488d043ace5f11f60bfea8f2267))
|
|
8
|
+
* changes to left to right menu on hover ([d6e8f41](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d6e8f41a88fd38f586a020f0a8591620e14b86ce))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
* Merge branch 'tm-3475-main-menu' into 'master' ([118ff98](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/118ff9840b15b98eb9e6a8549b31802bb9871540))
|
|
12
|
+
* Merge branch 'master' into tm-3475-main-menu ([f4901a2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f4901a2653b8176f3527d8aa67d148dd21339076))
|
|
13
|
+
|
|
1
14
|
## [23.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v23.0.1...v23.0.2) (2023-06-23)
|
|
2
15
|
|
|
3
16
|
|
package/package.json
CHANGED
|
@@ -8,14 +8,7 @@ import styles from './items.module.scss';
|
|
|
8
8
|
import { getPositionClass, itemHasChildren } from '~helpers/menu';
|
|
9
9
|
|
|
10
10
|
// Test included with menu molecule test
|
|
11
|
-
const Items = ({
|
|
12
|
-
item,
|
|
13
|
-
menuListRef,
|
|
14
|
-
gtmClass = '',
|
|
15
|
-
level = 1,
|
|
16
|
-
dropdownButtonWidth = 64,
|
|
17
|
-
canOpenAllSubMenus = true,
|
|
18
|
-
}) => {
|
|
11
|
+
const Items = ({ item, menuListRef, gtmClass = '', level = 1, canOpenAllSubMenus = true }) => {
|
|
19
12
|
let link;
|
|
20
13
|
let menu;
|
|
21
14
|
|
|
@@ -118,7 +111,6 @@ Items.propTypes = {
|
|
|
118
111
|
menuListRef: PropTypes.oneOfType([PropTypes.element, PropTypes.any]),
|
|
119
112
|
gtmClass: PropTypes.string,
|
|
120
113
|
level: PropTypes.number,
|
|
121
|
-
dropdownButtonWidth: PropTypes.number,
|
|
122
114
|
canOpenAllSubMenus: PropTypes.bool,
|
|
123
115
|
};
|
|
124
116
|
|
package/src/helpers/menu.js
CHANGED
|
@@ -7,7 +7,7 @@ export const getPositionClass = (target, styles) => {
|
|
|
7
7
|
const { left, width } = element.getBoundingClientRect();
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line no-unused-expressions
|
|
10
|
-
left + width > document.body.clientWidth &&
|
|
10
|
+
(left + width > document.body.clientWidth || left < 0) &&
|
|
11
11
|
element.classList.add(styles.staticLeft, styles.hoverLeft);
|
|
12
12
|
break;
|
|
13
13
|
}
|
|
@@ -97,14 +97,17 @@
|
|
|
97
97
|
--levelOne-bg-color: var(--color-4);
|
|
98
98
|
--levelOne-text-color: var(--color-49);
|
|
99
99
|
--levelOne-hover-bg-color: #EEEEEE;
|
|
100
|
+
--levelOne-hover-text-color: var(--color-49);
|
|
100
101
|
|
|
101
102
|
--levelTwo-bg-color: #FBFBFB;
|
|
102
103
|
--levelTwo-text-color: var(--color-49);
|
|
103
104
|
--levelTwo-hover-bg-color: #EEEEEE;
|
|
105
|
+
--levelTwo-hover-text-color: var(--color-49);
|
|
104
106
|
|
|
105
107
|
--levelThree-bg-color: var(--color-4);
|
|
106
108
|
--levelThree-text-color: var(--color-49);
|
|
107
109
|
--levelThree-hover-bg-color: #EEEEEE;
|
|
110
|
+
--levelThree-hover-text-color: var(--color-49);
|
|
108
111
|
|
|
109
112
|
// optional menu styles
|
|
110
113
|
--levelOne-btn-bg-color: var(--color-4);
|