gatsby-core-theme 42.0.30 → 42.0.32
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,17 @@
|
|
|
1
|
+
## [42.0.32](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.31...v42.0.32) (2025-03-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* menu items ([eb4cbb9](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/eb4cbb96ab848fc1088ad44f716a9a8e37541d9d))
|
|
7
|
+
|
|
8
|
+
## [42.0.31](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.30...v42.0.31) (2025-03-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* menu items ([1431504](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/14315041a77d97346f2ce71a6a7f99b4b83ac5fb))
|
|
14
|
+
|
|
1
15
|
## [42.0.30](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.29...v42.0.30) (2025-03-06)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ const Items = ({ item, menuListRef, orientation = 'horizontal', gtmClass = '', l
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
if (item.children) {
|
|
50
|
-
link = <Item item={item} gtmClass={gtmClass} active={currentPage === item.value} />;
|
|
50
|
+
link = <Item item={item} gtmClass={gtmClass} orientation={orientation} active={currentPage === item.value} />;
|
|
51
51
|
menu = (
|
|
52
52
|
<ul
|
|
53
53
|
ref={subMenuListRef}
|
|
@@ -70,7 +70,7 @@ const Items = ({ item, menuListRef, orientation = 'horizontal', gtmClass = '', l
|
|
|
70
70
|
</ul>
|
|
71
71
|
);
|
|
72
72
|
} else {
|
|
73
|
-
link = <Item item={item} gtmClass={gtmClass} active={currentPage === item.value} />;
|
|
73
|
+
link = <Item item={item} orientation={orientation} gtmClass={gtmClass} active={currentPage === item.value} />;
|
|
74
74
|
}
|
|
75
75
|
return (
|
|
76
76
|
<li
|
|
@@ -7,7 +7,7 @@ import { NavigationContext } from '~organisms/navigation/navigationContext';
|
|
|
7
7
|
|
|
8
8
|
import styles from './item.module.scss';
|
|
9
9
|
|
|
10
|
-
export default function Item({ item, gtmClass = '', active = false }) {
|
|
10
|
+
export default function Item({ item, orientation, gtmClass = '', active = false }) {
|
|
11
11
|
const { setShowMenu } = useContext(NavigationContext);
|
|
12
12
|
|
|
13
13
|
const handleClose = () => {
|
|
@@ -28,7 +28,7 @@ export default function Item({ item, gtmClass = '', active = false }) {
|
|
|
28
28
|
title={item.title}
|
|
29
29
|
rel={`noreferrer ${item.nofollow ? 'nofollow' : ''}`}
|
|
30
30
|
target="_blank"
|
|
31
|
-
className={`${styles.item || ''} ${gtmClass || ''} ${active && styles.currentPage || ''}`}
|
|
31
|
+
className={`${styles.item || ''} ${gtmClass || ''} ${`${orientation}Item` || ''} ${active && styles.currentPage || ''}`}
|
|
32
32
|
onClick={() => handleClose()}
|
|
33
33
|
>
|
|
34
34
|
<ItemImage />
|
|
@@ -41,14 +41,14 @@ export default function Item({ item, gtmClass = '', active = false }) {
|
|
|
41
41
|
title={item.title}
|
|
42
42
|
rel={item.nofollow ? 'nofollow' : ''}
|
|
43
43
|
aria-label={`${item?.title} link`}
|
|
44
|
-
className={`${styles.item || ''} ${gtmClass || ''} ${active && styles.currentPage || ''}`}
|
|
44
|
+
className={`${styles.item || ''} ${gtmClass || ''} ${`${orientation}Item` || ''} ${active && styles.currentPage || ''}`}
|
|
45
45
|
onClick={() => handleClose()}
|
|
46
46
|
>
|
|
47
47
|
<ItemImage />
|
|
48
48
|
{item.title}
|
|
49
49
|
</Link>
|
|
50
50
|
) : (
|
|
51
|
-
<span className={`${styles.item || ''} ${gtmClass || ''} ${styles.inactiveLink}`}>
|
|
51
|
+
<span className={`${styles.item || ''} ${gtmClass || ''} ${`${orientation}Item` || ''} ${styles.inactiveLink}`}>
|
|
52
52
|
{item.title}
|
|
53
53
|
</span>
|
|
54
54
|
)}
|
|
@@ -64,5 +64,6 @@ Item.propTypes = {
|
|
|
64
64
|
image: PropTypes.string,
|
|
65
65
|
}).isRequired,
|
|
66
66
|
gtmClass: PropTypes.string,
|
|
67
|
+
orientation: PropTypes.string,
|
|
67
68
|
active: PropTypes.bool
|
|
68
69
|
};
|