gatsby-core-theme 30.0.98 → 30.0.100

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,20 @@
1
+ ## [30.0.100](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.99...v30.0.100) (2024-03-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update paragraph styling ([62d6d78](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/62d6d78c0eff30d2de3512bc91d18dcfa0f01651))
7
+
8
+
9
+ * Merge branch 'tm-4137-text-module' into 'master' ([60a34d9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/60a34d957f37145457c3f851ae5548429039c0e6))
10
+
11
+ ## [30.0.99](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.98...v30.0.99) (2024-03-13)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * inp search ([121c13e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/121c13ea4a4835eba8a09be0a582a6f68afa7901))
17
+
1
18
  ## [30.0.98](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v30.0.97...v30.0.98) (2024-03-13)
2
19
 
3
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "30.0.98",
3
+ "version": "30.0.100",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -58,6 +58,8 @@
58
58
 
59
59
  p {
60
60
  margin-bottom: var(--paragraph-content-margin-bottom);
61
+ text-align: var(--paragraph-content-text-align, left);
62
+ display: var(--paragraph-content-display, block);
61
63
  @include min(tablet) {
62
64
  margin-bottom: var(--paragraph-margin-content-module, 2.4rem);
63
65
  }
@@ -18,25 +18,19 @@ const SearchForm = ({
18
18
  placeholder = null,
19
19
  marketPrefix = '/',
20
20
  }) => {
21
- const { showSearch, setShowSearch, setShowMenu, showMenu } = useContext(NavigationContext);
21
+ const [localSearch, setLocalSearch] = useState(false);
22
22
  const [searchBoxQuery, setSearchBoxQuery] = useState();
23
23
  const searchInputRef = useRef();
24
24
 
25
25
  const handleOnSearchIconClick = () => {
26
- setShowSearch(!showSearch);
27
-
26
+ setLocalSearch(!localSearch);
28
27
  toggleScroll('search');
29
-
30
- if (showMenu) {
31
- setShowMenu(false);
32
- toggleScroll('menu');
33
- }
34
28
  };
35
29
 
36
30
  const handleOverlayClickClose = (event) => {
37
31
  if (event.target.classList.contains(styles.searchForm)) {
38
32
  toggleScroll('search');
39
- setShowSearch(false);
33
+ setLocalSearch(false);
40
34
  }
41
35
  };
42
36
 
@@ -53,8 +47,8 @@ const SearchForm = ({
53
47
 
54
48
  useEffect(() => {
55
49
  // eslint-disable-next-line no-unused-expressions
56
- showSearch && searchInputRef.current.focus();
57
- }, [showSearch]);
50
+ localSearch && searchInputRef.current.focus();
51
+ }, [localSearch]);
58
52
 
59
53
  return (
60
54
  <div className={className || ''}>
@@ -63,7 +57,7 @@ const SearchForm = ({
63
57
  aria-label="Search"
64
58
  onClick={handleOnSearchIconClick}
65
59
  className={`${styles.searchButton || ''} ${
66
- showSearch && (styles.active || '')
60
+ localSearch && (styles.active || '')
67
61
  } search-gtm btn-cta`}
68
62
  >
69
63
  {searchIcon === null ? (
@@ -73,7 +67,7 @@ const SearchForm = ({
73
67
  )}
74
68
  {styles.close && <span className={styles.close || ''} />}
75
69
  </button>
76
- {showSearch && (
70
+ {localSearch && (
77
71
  <div
78
72
  onClick={handleOverlayClickClose}
79
73
  onKeyDown={handleOverlayClickClose}