gatsby-matrix-theme 4.0.4 → 5.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,22 @@
1
+ # [5.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v4.0.4...v5.0.0) (2022-02-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * spotlight styling ([d329a15](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d329a15dc62e62aec155fd33e7d0d2a3a0d63fec))
7
+
8
+
9
+ ### Code Refactoring
10
+
11
+ * add active env for demo content deploy ([4f35c35](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4f35c3523b4318971422d942d24102bb8f722ca4))
12
+ * remove anchorTitle ([1bedbc5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1bedbc5925ef1a163a569901b55bc9aadf67dc3f))
13
+
14
+
15
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([124e121](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/124e12144dbc7feaa11b6499bdf553d3d45337aa))
16
+ * Merge branch 'remove-anchorTitle' into 'master' ([2570a32](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2570a329997924cc37721bdce3bd8ad2aceeb78d))
17
+ * Merge branch 'tm-2706-custom-demo-deployment' into 'master' ([0f4d6ba](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0f4d6ba19a809a75cdfabee864c197f791439493))
18
+ * Merge branch 'master' into tm-2706-custom-demo-deployment ([aaf6237](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/aaf6237e6e5b64e1c30224d9ac19be9236c650f3))
19
+
1
20
  ## [4.0.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v4.0.3...v4.0.4) (2022-02-22)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "4.0.4",
3
+ "version": "5.0.0",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -50,7 +50,7 @@
50
50
  border: 1px solid var(--spotlight-boxes-border-color);
51
51
  background-color: var(--spotlight-boxes-background-color);
52
52
  box-sizing: border-box;
53
- border-radius: .6rem;
53
+ border-radius: var(--spotlight-boxes-border-radius);
54
54
  position: relative;
55
55
  max-width: 568px;
56
56
  margin-left: 4.5rem;
@@ -84,6 +84,8 @@
84
84
  > label {
85
85
  font-size: var(--spotlight-boxes-label-size);
86
86
  color: var(--spotlight-boxes-label-color);
87
+ line-height: var(--spotlight-boxes-label-line-height);
88
+ padding: var(--spotlight-boxes-label-padding);
87
89
  }
88
90
 
89
91
  > div {
@@ -33,10 +33,6 @@
33
33
  }
34
34
  }
35
35
 
36
- .anchorTitle {
37
- line-height: 3.5rem;
38
- }
39
-
40
36
  .storyDivs {
41
37
  width: 100%;
42
38
  display: block;
@@ -1,14 +1,11 @@
1
- import React, { useContext, useState } from 'react';
1
+ import React, { useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
4
- import { translate } from 'gatsby-core-theme/src/helpers/getters';
5
3
  import keygen from '~helpers/keygen';
6
4
  import { anchorLink } from '~helpers/strings';
7
5
  import styles from './anchor.module.scss';
8
6
 
9
7
  function Anchor({ module: { items }, headerOffset = 80, isFixed = false, icon = null }) {
10
8
  const [isFixedMenu, setIsFixedMenu] = useState(false);
11
- const { translations } = useContext(Context) || {};
12
9
 
13
10
  if (isFixed && typeof window !== 'undefined') {
14
11
  window.addEventListener('scroll', () => {
@@ -44,26 +41,21 @@ function Anchor({ module: { items }, headerOffset = 80, isFixed = false, icon =
44
41
  };
45
42
 
46
43
  return (
47
- <>
48
- <div className={styles.anchorTitle}>
49
- {translate(translations, 'anchor_title', 'Table of Contents')}
50
- </div>
51
- <ul id="faq-container" className={`${styles.anchor} ${isFixedMenu && styles.isFixed}`}>
52
- {items?.map((anchor) => (
53
- <li>
54
- <a
55
- className={`${styles.link} anchor-carousel-gtm anchor-menu-gtm`}
56
- key={keygen()}
57
- onClick={handleClick}
58
- href={`#${anchor.label && anchorLink(anchor?.label?.toLowerCase().trim())}`}
59
- >
60
- {anchor.label}
61
- {icon}
62
- </a>
63
- </li>
64
- ))}
65
- </ul>
66
- </>
44
+ <ul id="faq-container" className={`${styles.anchor} ${isFixedMenu && styles.isFixed}`}>
45
+ {items?.map((anchor) => (
46
+ <li>
47
+ <a
48
+ className={`${styles.link} anchor-carousel-gtm anchor-menu-gtm`}
49
+ key={keygen()}
50
+ onClick={handleClick}
51
+ href={`#${anchor.label && anchorLink(anchor?.label?.toLowerCase().trim())}`}
52
+ >
53
+ {anchor.label}
54
+ {icon}
55
+ </a>
56
+ </li>
57
+ ))}
58
+ </ul>
67
59
  );
68
60
  }
69
61
 
@@ -96,9 +96,12 @@
96
96
  --spotlight-testimonials-text-size: 1.6rem;
97
97
 
98
98
  --spotlight-boxes-border-color: #000;
99
+ --spotlight-boxes-border-radius: 1.6rem;
99
100
  --spotlight-boxes-background-color: #fff;
100
101
  --spotlight-boxes-label-color: #000;
102
+ --spotlight-boxes-label-line-height: 3rem;
101
103
  --spotlight-boxes-label-size: 1.8rem;
104
+ --spotlight-boxes-label-padding: 0;
102
105
  --spotlight-boxes-text-color: #000;
103
106
  --spotlight-boxes-text-size: 1.4rem;
104
107
  }