@financial-times/dotcom-ui-header 7.3.4 → 8.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.
@@ -53,7 +53,7 @@ const NavListRightLoggedInSticky = (props) => {
53
53
  var _a;
54
54
  const subscribeAction = (_a = props.data['navbar-right-anon'].items) === null || _a === void 0 ? void 0 : _a[1];
55
55
  return (react_1.default.createElement(react_1.default.Fragment, null,
56
- !props.userIsSubscribed && subscribeAction && (react_1.default.createElement(partials_1.SubscribeButton, { item: subscribeAction, variant: props.variant, className: "o-header__top-button--hide-m" })),
56
+ !props.userIsSubscribed && subscribeAction && (react_1.default.createElement(partials_1.SubscribeButton, { item: subscribeAction, variant: "sticky", className: "o-header__top-button--hide-m" })),
57
57
  react_1.default.createElement(MyFtSticky, { className: "" })));
58
58
  };
59
59
  // This behaviour is similar to `NavListRight` in '../navigation/partials' but:
@@ -197,7 +197,7 @@
197
197
  "affectsGlobalScope": false
198
198
  },
199
199
  "../src/components/sticky/partials.tsx": {
200
- "version": "3c7e1998f0e0d017870ff96802a9a2a79da018e4e06ba75d88956d27de851d5e",
200
+ "version": "48ac973f374d580296150e16e99c89dfc3717b11dd52080ec6cc309a740829c7",
201
201
  "signature": "502016ae45d32bca27cbd9d67cf6f390647cb4b8db18384814c9539213d40fba",
202
202
  "affectsGlobalScope": false
203
203
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-ui-header",
3
- "version": "7.3.4",
3
+ "version": "8.0.0",
4
4
  "description": "",
5
5
  "browser": "browser.js",
6
6
  "main": "component.js",
@@ -22,7 +22,7 @@
22
22
  "author": "",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@financial-times/dotcom-types-navigation": "^7.3.4",
25
+ "@financial-times/dotcom-types-navigation": "^8.0.0",
26
26
  "n-topic-search": "^4.0.0",
27
27
  "n-ui-foundations": "^9.0.0"
28
28
  },
@@ -40,7 +40,7 @@
40
40
  "react": "16.x || 17.x"
41
41
  },
42
42
  "engines": {
43
- "node": ">= 14.0.0",
43
+ "node": "16.x",
44
44
  "npm": "7.x || 8.x"
45
45
  },
46
46
  "files": [
@@ -217,6 +217,7 @@ exports[`dotcom-ui-header/src/components/StickyHeader renders as a logged in use
217
217
  data-trackable="Subscribe"
218
218
  href="/products?segmentId=#"
219
219
  role="button"
220
+ tabIndex={-1}
220
221
  >
221
222
  Subscribe
222
223
  </a>
@@ -131,7 +131,7 @@ const NavListRightLoggedInSticky = (props: THeaderProps) => {
131
131
  {!props.userIsSubscribed && subscribeAction && (
132
132
  <SubscribeButton
133
133
  item={subscribeAction}
134
- variant={props.variant}
134
+ variant="sticky"
135
135
  className="o-header__top-button--hide-m"
136
136
  />
137
137
  )}