@financial-times/dotcom-ui-header 7.3.0 → 7.3.2

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.
Files changed (42) hide show
  1. package/dist/node/components/drawer/additionalPartials.d.ts +11 -0
  2. package/dist/node/components/drawer/topLevelPartials.d.ts +3 -0
  3. package/dist/node/components/navigation/partials.d.ts +8 -0
  4. package/dist/node/components/search/partials.d.ts +5 -0
  5. package/dist/node/components/sticky/partials.d.ts +10 -0
  6. package/dist/node/components/sub-navigation/partials.d.ts +4 -0
  7. package/dist/node/components/svg-components/BrandFtMasthead.d.ts +6 -0
  8. package/dist/node/components/top/partials.d.ts +24 -0
  9. package/dist/node/index.d.ts +38 -0
  10. package/dist/node/utils.d.ts +2 -0
  11. package/dist/tsconfig.tsbuildinfo +2124 -0
  12. package/package.json +12 -6
  13. package/src/__stories__/demos.scss +28 -0
  14. package/src/__stories__/story-data/actionsUK.ts +5 -0
  15. package/src/__stories__/story-data/anon.ts +24 -0
  16. package/src/__stories__/story-data/drawerUK.ts +968 -0
  17. package/src/__stories__/story-data/editionsInternational.ts +8 -0
  18. package/src/__stories__/story-data/editionsUK.ts +8 -0
  19. package/src/__stories__/story-data/index.ts +41 -0
  20. package/src/__stories__/story-data/navbarRight.ts +19 -0
  21. package/src/__stories__/story-data/navbarRightAnon.ts +19 -0
  22. package/src/__stories__/story-data/navbarSimple.ts +24 -0
  23. package/src/__stories__/story-data/navbarUK.ts +996 -0
  24. package/src/__stories__/story-data/profile.ts +44 -0
  25. package/src/__stories__/story-data/subNavigationProfile.ts +27 -0
  26. package/src/__stories__/story-data/subNavigationUK.ts +37 -0
  27. package/src/__stories__/story-data/user.ts +13 -0
  28. package/src/__stories__/story.tsx +163 -0
  29. package/src/__test__/components/Drawer.spec.tsx +19 -0
  30. package/src/__test__/components/MainHeader.spec.tsx +26 -0
  31. package/src/__test__/components/NoOutboundLinks.spec.tsx +19 -0
  32. package/src/__test__/components/StickyHeader.spec.tsx +19 -0
  33. package/src/__test__/components/__snapshots__/Drawer.spec.tsx.snap +2718 -0
  34. package/src/__test__/components/__snapshots__/MainHeader.spec.tsx.snap +5547 -0
  35. package/src/__test__/components/__snapshots__/NoOutboundLinks.spec.tsx.snap +337 -0
  36. package/src/__test__/components/__snapshots__/StickyHeader.spec.tsx.snap +588 -0
  37. package/src/__test__/enzyme/component.spec.tsx +107 -0
  38. package/src/__test__/enzyme/drawer.spec.tsx +114 -0
  39. package/screenshots/header-navigation.png +0 -0
  40. package/screenshots/header-sub-navigation.png +0 -0
  41. package/screenshots/header-top-search.png +0 -0
  42. package/scripts/convertSvgsToReactComponents.js +0 -23
@@ -0,0 +1,337 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`dotcom-ui-header/src/components/NoOutboundLinksHeader renders as a logged in user 1`] = `
4
+ <header
5
+ className="o-header o-header--simple"
6
+ data-o-component="o-header"
7
+ data-o-header--no-js={true}
8
+ id="site-navigation"
9
+ tabIndex={-1}
10
+ >
11
+ <div
12
+ className="o-header__row o-header__top"
13
+ data-trackable="header-top"
14
+ >
15
+ <div
16
+ className="o-header__container"
17
+ >
18
+ <div
19
+ className="o-header__top-wrapper"
20
+ >
21
+ <div
22
+ className="o-header__top-column o-header__top-column--center"
23
+ >
24
+ <div
25
+ className="o-header__top-logo"
26
+ style={
27
+ Object {
28
+ "backgroundImage": "none",
29
+ }
30
+ }
31
+ >
32
+ <svg
33
+ viewBox="0 0 1054 86"
34
+ >
35
+ <title>
36
+ Financial Times
37
+ </title>
38
+ <path
39
+ d="M26.177 72.609c0 5.938 1.697 7.295 12.554 7.295v3.732H.9v-3.732c7.464 0 10.01-.679 10.01-7.125V12.215c0-6.447-2.546-7.126-10.01-7.126V1.357h63.448l.34 22.563h-3.054C59.937 6.956 55.696 5.43 39.919 5.43H26.008v33.59h11.196c10.688 0 11.367-1.697 12.215-10.179h3.054v24.599h-3.054c-.848-8.482-1.527-10.01-12.215-10.01H26.008v29.18h.17zm46.314 11.027v-3.732c7.465 0 10.01-.679 10.01-7.125V12.215c0-6.447-2.545-7.126-10.01-7.126V1.357h35.287V5.09c-7.465 0-10.01.679-10.01 7.126v60.564c0 6.446 2.545 7.125 10.01 7.125v3.732H72.49zm115.36 1.357l-56.323-69.725V72.44c0 6.617 4.58 7.634 12.385 7.634v3.733h-29.858v-3.733c7.803 0 12.045-1.017 12.045-7.634V8.991c-3.563-3.732-6.108-3.902-12.045-3.902V1.357h26.465l43.09 55.475V12.554c0-6.616-4.58-7.634-12.384-7.634V1.357h30.027V5.09c-7.803 0-12.045 1.018-12.045 7.635v72.27h-1.357zm40.207-1.357h-29.689v-3.732c7.804 0 11.367-1.018 13.911-7.804L239.085.509h7.464l28.84 72.1c2.545 6.447 3.732 7.125 9.67 7.125v3.732h-34.438v-3.732c10.518 0 11.536-.848 8.99-7.125l-8.481-21.884h-25.787L217.71 71.93c-2.375 6.447 1.357 7.804 10.518 7.804v3.902h-.17zm-1.188-37.153h22.393l-11.705-29.518-10.688 29.518zm135.548 38.51l-56.153-69.725V72.44c0 6.617 4.58 7.634 12.384 7.634v3.733h-29.18v-3.733c7.126 0 11.367-1.017 11.367-7.634V9.161c-4.071-3.732-7.125-4.072-13.91-4.072V1.357h28.16l43.09 55.475V12.554c0-6.616-4.58-7.634-12.383-7.634V1.357h29.858V5.09c-7.804 0-12.045 1.018-12.045 7.635v72.27h-1.188zm83.297-83.805h2.036l1.187 24.598-3.053.17c-2.036-14.08-9.5-21.545-23.242-21.545-15.268 0-26.804 13.063-26.804 33.081 0 25.617 16.116 40.206 33.08 40.206 7.296 0 13.912-2.035 20.358-8.99l2.376 2.374c-5.26 7.465-15.608 13.742-29.52 13.742-20.696 0-41.732-15.608-41.732-41.734C380.4 17.813 399.57 0 422.813 0c11.027 0 16.795 4.75 19.848 4.75 1.357 0 2.375-1.187 3.054-3.562zm12.723 82.448v-3.732c7.465 0 10.01-.679 10.01-7.125V12.215c0-6.447-2.545-7.126-10.01-7.126V1.357h35.287V5.09c-7.464 0-10.01.679-10.01 7.126v60.564c0 6.446 2.546 7.125 10.01 7.125v3.732h-35.287zm68.538 0h-27.653v-3.732c6.108 0 9.331-1.018 11.876-7.804L538.003.509h7.464l28.84 72.1c2.545 6.447 3.733 7.125 9.67 7.125v3.732H549.54v-3.732c10.518 0 11.536-.848 8.991-7.125l-8.482-21.884h-25.786l-7.635 21.205c-2.375 6.447 1.358 7.804 10.519 7.804v3.902h-.17zm-1.188-37.153h22.394l-11.536-29.518-10.858 29.518zm63.957 37.153v-3.732c7.465 0 10.01-.679 10.01-7.125V12.215c0-6.447-2.545-7.126-10.01-7.126V1.357h35.117V5.09c-7.464 0-9.84.679-9.84 7.126v61.073c0 5.428 2.715 6.107 7.126 6.107h4.241c15.947 0 21.036-2.375 25.447-20.527l3.054.339-2.545 24.26h-62.6v.17zM760.75 1.357l.339 23.92h-3.054C756.34 7.634 752.098 5.43 736.32 5.43h-5.089v67.18c0 6.447 2.375 7.295 12.554 7.295v3.732h-40.376v-3.732c10.179 0 12.723-1.018 12.723-7.295V5.429h-5.089c-15.777 0-20.018 2.205-21.715 19.848h-3.053l.339-23.92h74.136zm7.973 82.28v-3.733c7.465 0 10.01-.679 10.01-7.125V12.215c0-6.447-2.545-7.126-10.01-7.126V1.357h35.287V5.09c-7.465 0-10.01.679-10.01 7.126v60.564c0 6.446 2.545 7.125 10.01 7.125v3.732h-35.287zM910.21 1.356V5.09c-7.465 0-10.688.34-10.01 6.956l6.447 61.073c.679 6.277 3.054 6.955 10.518 6.955v3.733h-35.117v-3.733c7.295 0 9.84-.678 9.331-6.955L884.762 8.99l-25.956 76.172h-1.018L832.34 8.822l-6.108 64.126c-.678 6.447 3.733 7.125 11.197 7.125v3.733h-27.483v-3.733c7.465 0 10.01-1.187 10.518-7.125l6.447-61.073c.679-6.446-2.545-6.955-10.01-6.955V1.357h28.84l17.305 56.153 18.661-56.153h28.5zm65.653 52.082h-3.053c-.849-8.482-1.527-10.01-12.215-10.01H948.04v29.859c0 5.428 2.715 6.107 7.125 6.107h6.786c15.947 0 21.036-2.375 25.447-20.527l3.054.339-2.884 24.26h-64.805v-3.733c7.464 0 10.009-.678 10.009-7.125V12.215c0-6.447-2.545-7.126-10.01-7.126V1.357h62.261l.34 20.527h-3.054c-1.866-14.59-5.598-16.286-21.885-16.286H948.21v33.42h12.554c10.687 0 11.366-1.696 12.214-10.178h3.054v24.599h-.17zm65.484 13.232c0-7.464-4.75-11.196-12.893-15.777l-13.063-6.786c-9.84-5.259-15.607-11.027-15.607-21.375C999.783 9.84 1010.81 0 1025.23 0c9.84 0 14.929 4.75 17.813 4.75 1.866 0 2.714-1.187 3.562-3.562h2.375l1.188 23.072-3.054.17c-1.696-11.198-9.67-19.85-20.866-19.85-8.483 0-14.081 5.09-14.081 12.215 0 7.804 5.937 11.027 12.554 14.59l11.196 5.937c10.519 5.768 17.983 11.536 17.983 22.563 0 14.59-12.554 24.939-28.161 24.939-11.028 0-16.456-5.26-19.34-5.26-1.866 0-2.884 1.697-3.732 4.242h-2.376l-1.696-24.43 3.054-.339c2.375 15.268 12.893 21.545 23.411 21.545 8.822-.17 16.286-4.071 16.286-13.91z"
40
+ fill="#231F20"
41
+ fillRule="evenodd"
42
+ />
43
+ </svg>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ <nav
50
+ aria-label="Primary navigation"
51
+ className="o-header__row o-header__nav o-header__nav--desktop"
52
+ data-trackable="header-nav:desktop"
53
+ id="o-header-nav-desktop"
54
+ role="navigation"
55
+ >
56
+ <div
57
+ className="o-header__container"
58
+ />
59
+ </nav>
60
+ <div
61
+ aria-label="Sub navigation"
62
+ className="o-header__subnav"
63
+ data-o-header-subnav={true}
64
+ data-trackable="header-subnav"
65
+ role="navigation"
66
+ >
67
+ <div
68
+ className="o-header__container"
69
+ >
70
+ <div
71
+ className="o-header__subnav-wrap-outside"
72
+ >
73
+ <div
74
+ className="o-header__subnav-wrap-inside"
75
+ data-o-header-subnav-wrapper={true}
76
+ >
77
+ <div
78
+ className="o-header__subnav-content"
79
+ >
80
+ <ol
81
+ aria-label="Breadcrumb"
82
+ className="o-header__subnav-list o-header__subnav-list--breadcrumb"
83
+ data-trackable="breadcrumb"
84
+ >
85
+ <li
86
+ className="o-header__subnav-item"
87
+ >
88
+ <a
89
+ className="o-header__subnav-link "
90
+ data-trackable="World"
91
+ href="/world"
92
+ >
93
+ World
94
+ </a>
95
+ </li>
96
+ <li
97
+ className="o-header__subnav-item"
98
+ >
99
+ <a
100
+ aria-current="page"
101
+ aria-label="UK, current page"
102
+ className="o-header__subnav-link o-header__subnav-link--highlight"
103
+ data-trackable="UK"
104
+ href="/world/uk"
105
+ >
106
+ UK
107
+ </a>
108
+ </li>
109
+ </ol>
110
+ <ul
111
+ aria-label="Subsections"
112
+ className="o-header__subnav-list o-header__subnav-list--children"
113
+ data-trackable="subsections"
114
+ >
115
+ <li
116
+ className="o-header__subnav-item"
117
+ >
118
+ <a
119
+ className="o-header__subnav-link "
120
+ data-trackable="UK Business & Economy"
121
+ href="/uk-business-economy"
122
+ >
123
+ UK Business & Economy
124
+ </a>
125
+ </li>
126
+ <li
127
+ className="o-header__subnav-item"
128
+ >
129
+ <a
130
+ className="o-header__subnav-link "
131
+ data-trackable="UK Politics & Policy"
132
+ href="/world/uk/politics"
133
+ >
134
+ UK Politics & Policy
135
+ </a>
136
+ </li>
137
+ <li
138
+ className="o-header__subnav-item"
139
+ >
140
+ <a
141
+ className="o-header__subnav-link "
142
+ data-trackable="UK Companies"
143
+ href="/companies/uk"
144
+ >
145
+ UK Companies
146
+ </a>
147
+ </li>
148
+ </ul>
149
+ </div>
150
+ </div>
151
+ <button
152
+ aria-hidden="true"
153
+ aria-label="scroll left"
154
+ className="o-header__subnav-button o-header__subnav-button--left"
155
+ disabled={true}
156
+ title="scroll left"
157
+ />
158
+ <button
159
+ aria-hidden="true"
160
+ aria-label="scroll right"
161
+ className="o-header__subnav-button o-header__subnav-button--right"
162
+ disabled={true}
163
+ title="scroll right"
164
+ />
165
+ </div>
166
+ </div>
167
+ </div>
168
+ </header>
169
+ `;
170
+
171
+ exports[`dotcom-ui-header/src/components/NoOutboundLinksHeader renders as an anonymous user 1`] = `
172
+ <header
173
+ className="o-header o-header--simple"
174
+ data-o-component="o-header"
175
+ data-o-header--no-js={true}
176
+ id="site-navigation"
177
+ tabIndex={-1}
178
+ >
179
+ <div
180
+ className="o-header__row o-header__top"
181
+ data-trackable="header-top"
182
+ >
183
+ <div
184
+ className="o-header__container"
185
+ >
186
+ <div
187
+ className="o-header__top-wrapper"
188
+ >
189
+ <div
190
+ className="o-header__top-column o-header__top-column--center"
191
+ >
192
+ <div
193
+ className="o-header__top-logo"
194
+ style={
195
+ Object {
196
+ "backgroundImage": "none",
197
+ }
198
+ }
199
+ >
200
+ <svg
201
+ viewBox="0 0 1054 86"
202
+ >
203
+ <title>
204
+ Financial Times
205
+ </title>
206
+ <path
207
+ d="M26.177 72.609c0 5.938 1.697 7.295 12.554 7.295v3.732H.9v-3.732c7.464 0 10.01-.679 10.01-7.125V12.215c0-6.447-2.546-7.126-10.01-7.126V1.357h63.448l.34 22.563h-3.054C59.937 6.956 55.696 5.43 39.919 5.43H26.008v33.59h11.196c10.688 0 11.367-1.697 12.215-10.179h3.054v24.599h-3.054c-.848-8.482-1.527-10.01-12.215-10.01H26.008v29.18h.17zm46.314 11.027v-3.732c7.465 0 10.01-.679 10.01-7.125V12.215c0-6.447-2.545-7.126-10.01-7.126V1.357h35.287V5.09c-7.465 0-10.01.679-10.01 7.126v60.564c0 6.446 2.545 7.125 10.01 7.125v3.732H72.49zm115.36 1.357l-56.323-69.725V72.44c0 6.617 4.58 7.634 12.385 7.634v3.733h-29.858v-3.733c7.803 0 12.045-1.017 12.045-7.634V8.991c-3.563-3.732-6.108-3.902-12.045-3.902V1.357h26.465l43.09 55.475V12.554c0-6.616-4.58-7.634-12.384-7.634V1.357h30.027V5.09c-7.803 0-12.045 1.018-12.045 7.635v72.27h-1.357zm40.207-1.357h-29.689v-3.732c7.804 0 11.367-1.018 13.911-7.804L239.085.509h7.464l28.84 72.1c2.545 6.447 3.732 7.125 9.67 7.125v3.732h-34.438v-3.732c10.518 0 11.536-.848 8.99-7.125l-8.481-21.884h-25.787L217.71 71.93c-2.375 6.447 1.357 7.804 10.518 7.804v3.902h-.17zm-1.188-37.153h22.393l-11.705-29.518-10.688 29.518zm135.548 38.51l-56.153-69.725V72.44c0 6.617 4.58 7.634 12.384 7.634v3.733h-29.18v-3.733c7.126 0 11.367-1.017 11.367-7.634V9.161c-4.071-3.732-7.125-4.072-13.91-4.072V1.357h28.16l43.09 55.475V12.554c0-6.616-4.58-7.634-12.383-7.634V1.357h29.858V5.09c-7.804 0-12.045 1.018-12.045 7.635v72.27h-1.188zm83.297-83.805h2.036l1.187 24.598-3.053.17c-2.036-14.08-9.5-21.545-23.242-21.545-15.268 0-26.804 13.063-26.804 33.081 0 25.617 16.116 40.206 33.08 40.206 7.296 0 13.912-2.035 20.358-8.99l2.376 2.374c-5.26 7.465-15.608 13.742-29.52 13.742-20.696 0-41.732-15.608-41.732-41.734C380.4 17.813 399.57 0 422.813 0c11.027 0 16.795 4.75 19.848 4.75 1.357 0 2.375-1.187 3.054-3.562zm12.723 82.448v-3.732c7.465 0 10.01-.679 10.01-7.125V12.215c0-6.447-2.545-7.126-10.01-7.126V1.357h35.287V5.09c-7.464 0-10.01.679-10.01 7.126v60.564c0 6.446 2.546 7.125 10.01 7.125v3.732h-35.287zm68.538 0h-27.653v-3.732c6.108 0 9.331-1.018 11.876-7.804L538.003.509h7.464l28.84 72.1c2.545 6.447 3.733 7.125 9.67 7.125v3.732H549.54v-3.732c10.518 0 11.536-.848 8.991-7.125l-8.482-21.884h-25.786l-7.635 21.205c-2.375 6.447 1.358 7.804 10.519 7.804v3.902h-.17zm-1.188-37.153h22.394l-11.536-29.518-10.858 29.518zm63.957 37.153v-3.732c7.465 0 10.01-.679 10.01-7.125V12.215c0-6.447-2.545-7.126-10.01-7.126V1.357h35.117V5.09c-7.464 0-9.84.679-9.84 7.126v61.073c0 5.428 2.715 6.107 7.126 6.107h4.241c15.947 0 21.036-2.375 25.447-20.527l3.054.339-2.545 24.26h-62.6v.17zM760.75 1.357l.339 23.92h-3.054C756.34 7.634 752.098 5.43 736.32 5.43h-5.089v67.18c0 6.447 2.375 7.295 12.554 7.295v3.732h-40.376v-3.732c10.179 0 12.723-1.018 12.723-7.295V5.429h-5.089c-15.777 0-20.018 2.205-21.715 19.848h-3.053l.339-23.92h74.136zm7.973 82.28v-3.733c7.465 0 10.01-.679 10.01-7.125V12.215c0-6.447-2.545-7.126-10.01-7.126V1.357h35.287V5.09c-7.465 0-10.01.679-10.01 7.126v60.564c0 6.446 2.545 7.125 10.01 7.125v3.732h-35.287zM910.21 1.356V5.09c-7.465 0-10.688.34-10.01 6.956l6.447 61.073c.679 6.277 3.054 6.955 10.518 6.955v3.733h-35.117v-3.733c7.295 0 9.84-.678 9.331-6.955L884.762 8.99l-25.956 76.172h-1.018L832.34 8.822l-6.108 64.126c-.678 6.447 3.733 7.125 11.197 7.125v3.733h-27.483v-3.733c7.465 0 10.01-1.187 10.518-7.125l6.447-61.073c.679-6.446-2.545-6.955-10.01-6.955V1.357h28.84l17.305 56.153 18.661-56.153h28.5zm65.653 52.082h-3.053c-.849-8.482-1.527-10.01-12.215-10.01H948.04v29.859c0 5.428 2.715 6.107 7.125 6.107h6.786c15.947 0 21.036-2.375 25.447-20.527l3.054.339-2.884 24.26h-64.805v-3.733c7.464 0 10.009-.678 10.009-7.125V12.215c0-6.447-2.545-7.126-10.01-7.126V1.357h62.261l.34 20.527h-3.054c-1.866-14.59-5.598-16.286-21.885-16.286H948.21v33.42h12.554c10.687 0 11.366-1.696 12.214-10.178h3.054v24.599h-.17zm65.484 13.232c0-7.464-4.75-11.196-12.893-15.777l-13.063-6.786c-9.84-5.259-15.607-11.027-15.607-21.375C999.783 9.84 1010.81 0 1025.23 0c9.84 0 14.929 4.75 17.813 4.75 1.866 0 2.714-1.187 3.562-3.562h2.375l1.188 23.072-3.054.17c-1.696-11.198-9.67-19.85-20.866-19.85-8.483 0-14.081 5.09-14.081 12.215 0 7.804 5.937 11.027 12.554 14.59l11.196 5.937c10.519 5.768 17.983 11.536 17.983 22.563 0 14.59-12.554 24.939-28.161 24.939-11.028 0-16.456-5.26-19.34-5.26-1.866 0-2.884 1.697-3.732 4.242h-2.376l-1.696-24.43 3.054-.339c2.375 15.268 12.893 21.545 23.411 21.545 8.822-.17 16.286-4.071 16.286-13.91z"
208
+ fill="#231F20"
209
+ fillRule="evenodd"
210
+ />
211
+ </svg>
212
+ </div>
213
+ </div>
214
+ </div>
215
+ </div>
216
+ </div>
217
+ <nav
218
+ aria-label="Primary navigation"
219
+ className="o-header__row o-header__nav o-header__nav--desktop"
220
+ data-trackable="header-nav:desktop"
221
+ id="o-header-nav-desktop"
222
+ role="navigation"
223
+ >
224
+ <div
225
+ className="o-header__container"
226
+ />
227
+ </nav>
228
+ <div
229
+ aria-label="Sub navigation"
230
+ className="o-header__subnav"
231
+ data-o-header-subnav={true}
232
+ data-trackable="header-subnav"
233
+ role="navigation"
234
+ >
235
+ <div
236
+ className="o-header__container"
237
+ >
238
+ <div
239
+ className="o-header__subnav-wrap-outside"
240
+ >
241
+ <div
242
+ className="o-header__subnav-wrap-inside"
243
+ data-o-header-subnav-wrapper={true}
244
+ >
245
+ <div
246
+ className="o-header__subnav-content"
247
+ >
248
+ <ol
249
+ aria-label="Breadcrumb"
250
+ className="o-header__subnav-list o-header__subnav-list--breadcrumb"
251
+ data-trackable="breadcrumb"
252
+ >
253
+ <li
254
+ className="o-header__subnav-item"
255
+ >
256
+ <a
257
+ className="o-header__subnav-link "
258
+ data-trackable="World"
259
+ href="/world"
260
+ >
261
+ World
262
+ </a>
263
+ </li>
264
+ <li
265
+ className="o-header__subnav-item"
266
+ >
267
+ <a
268
+ aria-current="page"
269
+ aria-label="UK, current page"
270
+ className="o-header__subnav-link o-header__subnav-link--highlight"
271
+ data-trackable="UK"
272
+ href="/world/uk"
273
+ >
274
+ UK
275
+ </a>
276
+ </li>
277
+ </ol>
278
+ <ul
279
+ aria-label="Subsections"
280
+ className="o-header__subnav-list o-header__subnav-list--children"
281
+ data-trackable="subsections"
282
+ >
283
+ <li
284
+ className="o-header__subnav-item"
285
+ >
286
+ <a
287
+ className="o-header__subnav-link "
288
+ data-trackable="UK Business & Economy"
289
+ href="/uk-business-economy"
290
+ >
291
+ UK Business & Economy
292
+ </a>
293
+ </li>
294
+ <li
295
+ className="o-header__subnav-item"
296
+ >
297
+ <a
298
+ className="o-header__subnav-link "
299
+ data-trackable="UK Politics & Policy"
300
+ href="/world/uk/politics"
301
+ >
302
+ UK Politics & Policy
303
+ </a>
304
+ </li>
305
+ <li
306
+ className="o-header__subnav-item"
307
+ >
308
+ <a
309
+ className="o-header__subnav-link "
310
+ data-trackable="UK Companies"
311
+ href="/companies/uk"
312
+ >
313
+ UK Companies
314
+ </a>
315
+ </li>
316
+ </ul>
317
+ </div>
318
+ </div>
319
+ <button
320
+ aria-hidden="true"
321
+ aria-label="scroll left"
322
+ className="o-header__subnav-button o-header__subnav-button--left"
323
+ disabled={true}
324
+ title="scroll left"
325
+ />
326
+ <button
327
+ aria-hidden="true"
328
+ aria-label="scroll right"
329
+ className="o-header__subnav-button o-header__subnav-button--right"
330
+ disabled={true}
331
+ title="scroll right"
332
+ />
333
+ </div>
334
+ </div>
335
+ </div>
336
+ </header>
337
+ `;