@eeacms/volto-eea-design-system 1.0.0-beta.1 → 1.0.0-beta.3

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 (53) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/package.json +1 -1
  3. package/src/ui/Accordion/Accordion.stories.js +4 -0
  4. package/src/ui/Footer/Footer.jsx +1 -1
  5. package/src/ui/Footer/Footer.stories.js +4 -1
  6. package/src/ui/Footer/FooterActions.jsx +17 -6
  7. package/src/ui/Footer/FooterHeader.jsx +1 -1
  8. package/src/ui/Header/Header.jsx +44 -11
  9. package/src/ui/Header/Header.stories.js +7 -3
  10. package/src/ui/Header/HeaderMenuPopUp.js +2 -2
  11. package/src/ui/Header/HeaderSearchPopUp.js +15 -24
  12. package/src/ui/Logo/Logo.jsx +1 -1
  13. package/templates/eea.hbs +1 -1
  14. package/theme/themes/eea/assets/images/Footer/Extras/{footervisual.svg → footer-visual.svg} +0 -0
  15. package/theme/themes/eea/assets/images/{loaderImage.png → loader-image.png} +0 -0
  16. package/theme/themes/eea/elements/loader.overrides +22 -22
  17. package/theme/themes/eea/extras/footer.less +20 -35
  18. package/theme/themes/eea/extras/footer.variables +15 -17
  19. package/theme/themes/eea/extras/header.less +29 -10
  20. package/theme/themes/eea/extras/header.variables +1 -0
  21. package/theme/themes/eea/extras/inpageNavigation.less +1 -0
  22. package/theme/themes/eea/globals/site.overrides +6 -0
  23. package/theme/themes/eea/globals/site.variables +3 -0
  24. package/theme/themes/eea/modules/accordion.overrides +23 -7
  25. package/theme/themes/eea/assets/images/EEA_Logo_Vertical.png +0 -0
  26. package/theme/themes/eea/assets/images/Footer/EEALogo.png +0 -0
  27. package/theme/themes/eea/assets/images/Footer/EULogo.png +0 -0
  28. package/theme/themes/eea/assets/images/Footer/Extras/Logo1.png +0 -0
  29. package/theme/themes/eea/assets/images/Footer/Extras/Logo10.png +0 -0
  30. package/theme/themes/eea/assets/images/Footer/Extras/Logo2.png +0 -0
  31. package/theme/themes/eea/assets/images/Footer/Extras/Logo3.png +0 -0
  32. package/theme/themes/eea/assets/images/Footer/Extras/Logo4.png +0 -0
  33. package/theme/themes/eea/assets/images/Footer/Extras/Logo5.png +0 -0
  34. package/theme/themes/eea/assets/images/Footer/Extras/Logo6.png +0 -0
  35. package/theme/themes/eea/assets/images/Footer/Extras/Logo7.png +0 -0
  36. package/theme/themes/eea/assets/images/Footer/Extras/Logo8.png +0 -0
  37. package/theme/themes/eea/assets/images/Footer/Extras/Logo9.png +0 -0
  38. package/theme/themes/eea/assets/images/Footer/Extras/abstract-visual.svg +0 -32
  39. package/theme/themes/eea/assets/images/Footer/Vector1.png +0 -0
  40. package/theme/themes/eea/assets/images/Footer/Vector2.png +0 -0
  41. package/theme/themes/eea/assets/images/Header/Vector.png +0 -0
  42. package/theme/themes/eea/assets/images/Header/close.png +0 -0
  43. package/theme/themes/eea/assets/images/Header/down-arrow.png +0 -0
  44. package/theme/themes/eea/assets/images/Header/eeaIcon.png +0 -0
  45. package/theme/themes/eea/assets/images/Header/globeIcon.png +0 -0
  46. package/theme/themes/eea/assets/images/Header/hamburgerMenuIcon.png +0 -0
  47. package/theme/themes/eea/assets/images/Header/menu-left-arrow.svg +0 -3
  48. package/theme/themes/eea/assets/images/Header/search.png +0 -0
  49. package/theme/themes/eea/assets/images/Header/searchIcon.png +0 -0
  50. package/theme/themes/eea/assets/images/Svg/arrow-double-right.svg +0 -4
  51. package/theme/themes/eea/assets/images/arrow-down.svg +0 -10
  52. package/theme/themes/eea/assets/images/eea_icon.png +0 -0
  53. package/theme/themes/eea/assets/images/mega-menu-arrow.svg +0 -3
package/CHANGELOG.md CHANGED
@@ -4,6 +4,77 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [1.0.0-beta.3](https://github.com/eea/volto-eea-design-system/compare/1.0.0-beta.2...1.0.0-beta.3) - 21 February 2023
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat(accordion): storybook accessibility by using buttons for titles #297 from eea/accessibility-accordion [ichim-david - [`809d52b`](https://github.com/eea/volto-eea-design-system/commit/809d52b203ef40fab735006b3b8358d68682f7cf)]
12
+
13
+ #### :bug: Bug Fixes
14
+
15
+ - fix(dropdown): remove close on blur so that we can navigate links using keyboard [David Ichim - [`5442715`](https://github.com/eea/volto-eea-design-system/commit/5442715e022b3eb2eeb709ff597f815947ac45bd)]
16
+
17
+ #### :nail_care: Enhancements
18
+
19
+ - change(language): restore dropdown duplication in order to properly show and hide language dropdown [David Ichim - [`cb28888`](https://github.com/eea/volto-eea-design-system/commit/cb28888ff19bd9894b58403e674f69de42ad8d09)]
20
+ - change(language): hide language dropdown by default [David Ichim - [`cc6064f`](https://github.com/eea/volto-eea-design-system/commit/cc6064f72dcb4dbf96e9b05205cc796775d75205)]
21
+ - change(header): top dropdown menu keyboard navigation #293 from eea/accessibility-megamenu-searchbox [ichim-david - [`1e6fa65`](https://github.com/eea/volto-eea-design-system/commit/1e6fa658e52b9d5e6cc38f065b5707b592005241)]
22
+ - change(language): dropdown to use links for proper keyboard navigation [David Ichim - [`6a7de30`](https://github.com/eea/volto-eea-design-system/commit/6a7de30d9d229443d6d2070d9649129e6d35badf)]
23
+ - change(search): to reflect changes from eea-website-theme [David Ichim - [`2cc35e0`](https://github.com/eea/volto-eea-design-system/commit/2cc35e0da6e6eac1473724293fcf6cd6b0a914b5)]
24
+ - change(button): set focus styling for buttons [ichim-david - [`33ebfca`](https://github.com/eea/volto-eea-design-system/commit/33ebfcacb014fca365ae58079bfa5429d9007e54)]
25
+ - change(footer): Avoid devtools warning in FooterActions #304 from eea/avoid_warning [ichim-david - [`d774824`](https://github.com/eea/volto-eea-design-system/commit/d774824c5d3d0998b3440ac83152428cfa821087)]
26
+ - change(accessibility): style outline instead of box-shadow [David Ichim - [`53209f3`](https://github.com/eea/volto-eea-design-system/commit/53209f3b28c9a1dd54a8a86ab418b8bc2a8e01b3)]
27
+ - change(header): set the logo class directly on the link [David Ichim - [`f8fba50`](https://github.com/eea/volto-eea-design-system/commit/f8fba508f925d9e6b86720fcb2c7dcfffee4ab5e)]
28
+ - change(footer): Accessibility update p with h3 heading tag for theme sites title #302 from eea/footer-accessibility [ichim-david - [`5bf70de`](https://github.com/eea/volto-eea-design-system/commit/5bf70de97aee216a0b88f5843a290c6bcb5da6f2)]
29
+ - change(documentation): Rename all image files to follow the agreed convention #301 from eea/refactor-image-filenames [ichim-david - [`cfe44ef`](https://github.com/eea/volto-eea-design-system/commit/cfe44ef79943af9b9179df1b8ec5f8c743e8bb39)]
30
+ - refactor(Footer): update mobile header size [Antonis Tarantilis - [`01ab7f0`](https://github.com/eea/volto-eea-design-system/commit/01ab7f0d9abe688b3d96aaec018838e1abefec73)]
31
+ - refactor(footer): update p with h3 heading tag for header [Antonis Tarantilis - [`ca1477b`](https://github.com/eea/volto-eea-design-system/commit/ca1477b554f56423d40a33d8ee788c3f3bd3e341)]
32
+ - refactor(docusaurus): cleanup decorative images [Giorgos Stamatis - [`fedc4d4`](https://github.com/eea/volto-eea-design-system/commit/fedc4d4dc156f9c1394fcedcebece4fb87dc70b6)]
33
+ - refactor(images): remove unused docusaurus svgs [Giorgos Stamatis - [`c5ef14c`](https://github.com/eea/volto-eea-design-system/commit/c5ef14cdb1923d803feb673559d41b3064211653)]
34
+ - refactor(Accessibility): add box-shadow on focus-visible components [Antonis Tarantilis - [`b1adcc3`](https://github.com/eea/volto-eea-design-system/commit/b1adcc315a89c7d3431e542e8d1b6ec479a346e2)]
35
+ - refactor(images): clear docusaurus unused pngs [Giorgos Stamatis - [`db5c611`](https://github.com/eea/volto-eea-design-system/commit/db5c61124182e3030f753f6baa294fbdecaa3798)]
36
+ - refactor(Accordion): div titles to buttons, test in mobile mega menu accordions [Antonis Tarantilis - [`eaad4b4`](https://github.com/eea/volto-eea-design-system/commit/eaad4b479e37ebf5ac004cfc5759e0be603000a7)]
37
+ - refactor(header): add escape key functionality, actions from div to button to have proper focus state [Antonis Tarantilis - [`8081aa4`](https://github.com/eea/volto-eea-design-system/commit/8081aa4e3b77f8a3dc89aa358408d75e3dca5579)]
38
+ - refactor(images): cleared unused/renamed images assets [Giorgos Stamatis - [`821f5c1`](https://github.com/eea/volto-eea-design-system/commit/821f5c1da5c1e2350818cd9b8b82bc0b1893370d)]
39
+ - refactor(header-images): removed unused [Giorgos Stamatis - [`8250d94`](https://github.com/eea/volto-eea-design-system/commit/8250d94421d9d1ee13144e71bc0938af2b7309f5)]
40
+ - refactor(footer images): removed unused/renamed [Giorgos Stamatis - [`186de6b`](https://github.com/eea/volto-eea-design-system/commit/186de6b23906e05ec700c3db5180a4d7f7e5ed68)]
41
+
42
+ #### :house: Internal changes
43
+
44
+ - style(header): react syntax fix [Antonis Tarantilis - [`3add127`](https://github.com/eea/volto-eea-design-system/commit/3add1271c785a92bea0ef925d7bc562cef1e0d92)]
45
+
46
+ #### :house: Documentation changes
47
+
48
+ - docs(guidelines): add image name convention [Giorgos Stamatis - [`290747c`](https://github.com/eea/volto-eea-design-system/commit/290747c8df6919199577bc7fce6a0e337cb57853)]
49
+
50
+ #### :hammer_and_wrench: Others
51
+
52
+ - Release 1.0.0-beta.3 [Alin Voinea - [`386c903`](https://github.com/eea/volto-eea-design-system/commit/386c9032d39317b0bb95191bd59e3b7a99bded69)]
53
+ - Avoid warning in FooterActions [Tiberiu Ichim - [`0fe73d7`](https://github.com/eea/volto-eea-design-system/commit/0fe73d70e44e32be73049f3b5cf826de42115942)]
54
+ ### [1.0.0-beta.2](https://github.com/eea/volto-eea-design-system/compare/1.0.0-beta.1...1.0.0-beta.2) - 13 February 2023
55
+
56
+ #### :bug: Bug Fixes
57
+
58
+ - fix(footer): action and copyright #300 from eea/develop [ichim-david - [`579f3e4`](https://github.com/eea/volto-eea-design-system/commit/579f3e436e9608b38a2407a16c070345462bfccc)]
59
+ - fix(accessibility): added navigation and footer id's for skip link [David Ichim - [`48354b9`](https://github.com/eea/volto-eea-design-system/commit/48354b908e7d1a87b4e1a965d225e8f1b3e0ac59)]
60
+ - fix(footer): action or copyright links are simple a tags for external link [David Ichim - [`9af5070`](https://github.com/eea/volto-eea-design-system/commit/9af5070187ec975e58387f133afedcf1bbc47a50)]
61
+
62
+ #### :nail_care: Enhancements
63
+
64
+ - change(navigation): raise z-index of go to top link [David Ichim - [`485ca72`](https://github.com/eea/volto-eea-design-system/commit/485ca7291da7a156b6b580c42e46d4f3602211bb)]
65
+ - change(footer): modified footer gap [David Ichim - [`b8a820a`](https://github.com/eea/volto-eea-design-system/commit/b8a820ac90c7d6664e4d4655c2c06edfa976c64e)]
66
+ - change(footer): added gap for actions and copyright [David Ichim - [`7d32ddd`](https://github.com/eea/volto-eea-design-system/commit/7d32ddd3c28a48c6c2fb73dea373bb5873b6f76b)]
67
+ - change(footer): typos and modified footer links to be center aligned [David Ichim - [`ac23f04`](https://github.com/eea/volto-eea-design-system/commit/ac23f046bcac06525985dff7520bb2766dec44ec)]
68
+ - change(footer): removed extra text and date from copyright section [David Ichim - [`af47bbe`](https://github.com/eea/volto-eea-design-system/commit/af47bbec298678fece6f879fbc18fe2e01ab0894)]
69
+
70
+ #### :house: Internal changes
71
+
72
+ - chore(docs): Update eea.hbs template to beta - refs #158717 [Alin Voinea - [`196538e`](https://github.com/eea/volto-eea-design-system/commit/196538ed7bb9dab36a0efb4cef84e96dd3038ff8)]
73
+
74
+ #### :hammer_and_wrench: Others
75
+
76
+ - change version to beta 2 [David Ichim - [`cbb0798`](https://github.com/eea/volto-eea-design-system/commit/cbb07981454b28de840561eca281888e8bc29f9e)]
77
+ - Beta release [Alin Voinea - [`4ad51b3`](https://github.com/eea/volto-eea-design-system/commit/4ad51b3c2bbb75f19af14fa56afdbddf57b6c95e)]
7
78
  ### [1.0.0-beta.1](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.15...1.0.0-beta.1) - 9 February 2023
8
79
 
9
80
  #### :rocket: New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "@eeacms/volto-eea-design-system: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -107,6 +107,7 @@ function AccordionContainer({ ...args }) {
107
107
  active={activeIndex === 0}
108
108
  index={0}
109
109
  onClick={toggleOpenAccordion}
110
+ as="button"
110
111
  >
111
112
  {args.toggle1}
112
113
  <Icon className="ri-arrow-down-s-line" />
@@ -114,12 +115,14 @@ function AccordionContainer({ ...args }) {
114
115
  <Accordion.Content active={activeIndex === 0}>
115
116
  {args.content1.length > 0 &&
116
117
  args.content1.map((item, index) => <p key={index}>{item}</p>)}
118
+ <a href="/#">Read more</a>
117
119
  </Accordion.Content>
118
120
 
119
121
  <Accordion.Title
120
122
  active={activeIndex === 1}
121
123
  index={1}
122
124
  onClick={toggleOpenAccordion}
125
+ as="button"
123
126
  >
124
127
  {args.toggle2}
125
128
  <Icon className="ri-arrow-down-s-line" />
@@ -133,6 +136,7 @@ function AccordionContainer({ ...args }) {
133
136
  active={activeIndex === 2}
134
137
  index={2}
135
138
  onClick={toggleOpenAccordion}
139
+ as="button"
136
140
  >
137
141
  {args.toggle3}
138
142
  <Icon className="ri-arrow-down-s-line" />
@@ -23,7 +23,7 @@ import Contact from '@eeacms/volto-eea-design-system/ui/Footer/Contact';
23
23
  const Footer = (props) => {
24
24
  const { children } = props;
25
25
  return (
26
- <footer>
26
+ <footer id={'footer'}>
27
27
  <div className="footer-wrapper">
28
28
  <Container>{children}</Container>
29
29
  </div>
@@ -36,7 +36,10 @@ Default.args = {
36
36
  { link: '/#', title: 'Sitemap' },
37
37
  { link: '/#', title: 'CMS Login' },
38
38
  ],
39
- copyright: [{ link: '/#', site: 'EEA' }],
39
+ copyright: [
40
+ { link: 'https://status.eea.europa.eu/', title: 'System status' },
41
+ { link: '/#', title: '© Copyright 2023 EEA' },
42
+ ],
40
43
  sites: [
41
44
  { link: '/#', src: Marine, alt: 'WISE marine' },
42
45
  { link: '/#', src: Freshwater, alt: 'WISE freshwater' },
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { Link } from 'react-router-dom';
3
2
  import { Grid } from 'semantic-ui-react';
4
3
 
5
4
  const FooterActions = (props) => {
@@ -14,9 +13,14 @@ const FooterActions = (props) => {
14
13
  <div className="actions">
15
14
  {props.actions &&
16
15
  props.actions.map((action, index) => (
17
- <Link to={action.link} key={index}>
16
+ <a
17
+ href={action.link}
18
+ key={index}
19
+ target={'_blank'}
20
+ rel={'noreferrer'}
21
+ >
18
22
  {action.title}
19
- </Link>
23
+ </a>
20
24
  ))}
21
25
  </div>
22
26
  </Grid.Column>
@@ -25,9 +29,16 @@ const FooterActions = (props) => {
25
29
  <div className="copyright">
26
30
  {props.copyright &&
27
31
  props.copyright.map((copyright, index) => (
28
- <Link to={copyright.link} key={index}>
29
- &copy; Copyright {new Date().getFullYear()} {copyright.site}
30
- </Link>
32
+ <React.Fragment key={index}>
33
+ <a
34
+ href={copyright.link}
35
+ key={index}
36
+ target={'_blank'}
37
+ rel={'noreferrer'}
38
+ >
39
+ {copyright.title}
40
+ </a>
41
+ </React.Fragment>
31
42
  ))}
32
43
  </div>
33
44
  </Grid.Column>
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  const FooterHeader = (props) => {
4
4
  return (
5
5
  <div className="theme-sites">
6
- <p className="header text-center">{props.children}</p>
6
+ <h3 className="header text-center">{props.children}</h3>
7
7
  </div>
8
8
  );
9
9
  };
@@ -41,7 +41,7 @@ const TopDropdownMenu = ({
41
41
  children,
42
42
  className,
43
43
  icon,
44
- hasLanguageDropdown = true,
44
+ hasLanguageDropdown = false,
45
45
  id,
46
46
  tabletText,
47
47
  mobileText,
@@ -62,8 +62,9 @@ const TopDropdownMenu = ({
62
62
  text={mobileText || text}
63
63
  icon={icon || 'chevron down'}
64
64
  aria-label="dropdown"
65
- closeOnChange={false}
66
- closeOnBlur={true}
65
+ closeOnChange={true}
66
+ closeOnBlur={false}
67
+ closeOnEscape={true}
67
68
  >
68
69
  <Dropdown.Menu role="group">{children}</Dropdown.Menu>
69
70
  </Dropdown>
@@ -75,8 +76,9 @@ const TopDropdownMenu = ({
75
76
  text={mobileText || text}
76
77
  icon={icon || 'chevron down'}
77
78
  aria-label="dropdown"
78
- closeOnChange={false}
79
- closeOnBlur={true}
79
+ closeOnChange={true}
80
+ closeOnBlur={false}
81
+ closeOnEscape={true}
80
82
  >
81
83
  <Dropdown.Menu role="group">{children}</Dropdown.Menu>
82
84
  </Dropdown>
@@ -200,6 +202,32 @@ const Main = ({
200
202
  }
201
203
  };
202
204
 
205
+ // Listens for escape keydown event
206
+ React.useEffect(() => {
207
+ const escKeyPressed = (e) => {
208
+ if (e.key === 'Escape') {
209
+ // menuOnClickOutside();
210
+ // restore active element if nothing was selected from the menu dropdown
211
+ if (pathname !== activeItem) {
212
+ setActiveItem(pathname);
213
+ }
214
+ // close mobile navigation when clicking outside if we have value for nav
215
+ if (burger) {
216
+ setBurger('');
217
+ }
218
+ // always close the menu & search
219
+ setMenuIsActive(false);
220
+ setSearchIsActive(false);
221
+ }
222
+ };
223
+
224
+ document.addEventListener('keydown', escKeyPressed);
225
+
226
+ return () => {
227
+ document.removeEventListener('keydown', escKeyPressed);
228
+ };
229
+ }, [activeItem, burger, pathname]);
230
+
203
231
  // React.useEffect(() => {
204
232
  // if (searchIsActive || burger === 'open' || menuIsActive) {
205
233
  // document.body.style.overflow = 'hidden';
@@ -236,6 +264,7 @@ const Main = ({
236
264
  <div
237
265
  className="ui text eea-main-menu tablet or lower hidden menu"
238
266
  ref={desktopMenuRef}
267
+ id={'navigation'}
239
268
  >
240
269
  {menuItems.map((item) => (
241
270
  <Menu.Item
@@ -254,10 +283,12 @@ const Main = ({
254
283
  </div>
255
284
  )}
256
285
  {!hideSearch && (
257
- <div
286
+ <button
258
287
  className="search-action"
259
288
  onClick={searchOnClick}
260
- role="none"
289
+ tabIndex="0"
290
+ aria-pressed="false"
291
+ aria-haspopup="true"
261
292
  ref={searchButtonRef}
262
293
  >
263
294
  {/* <Icon name={!state.activeSearch ? 'search' : 'close'} /> */}
@@ -265,7 +296,7 @@ const Main = ({
265
296
  src={!searchIsActive ? `${searchIcon}` : `${closeIcon}`}
266
297
  alt="search button open/close"
267
298
  />
268
- </div>
299
+ </button>
269
300
  )}
270
301
  <Header.BurgerAction
271
302
  className={`mobile ${burger}`}
@@ -302,14 +333,16 @@ const Main = ({
302
333
  };
303
334
 
304
335
  const BurgerAction = React.forwardRef((props, ref) => (
305
- <div
336
+ <button
306
337
  ref={ref}
307
338
  className={`burger-action ${props.className}`}
308
- role="none"
339
+ tabIndex="0"
340
+ aria-pressed="false"
341
+ aria-haspopup="true"
309
342
  onClick={props.onClick}
310
343
  >
311
344
  {props.children}
312
- </div>
345
+ </button>
313
346
  ));
314
347
 
315
348
  Header.BurgerAction = BurgerAction;
@@ -1371,14 +1371,18 @@ const Template = (args) => {
1371
1371
  as="li"
1372
1372
  key={index}
1373
1373
  text={
1374
- <span>
1374
+ <a
1375
+ href={'/' + item.code}
1376
+ onClick={() => setLanguage(item.code)}
1377
+ tabIndex={0}
1378
+ className={'language-link'}
1379
+ >
1375
1380
  {item.name}
1376
1381
  <span className="country-code">
1377
1382
  {item.code.toUpperCase()}
1378
1383
  </span>
1379
- </span>
1384
+ </a>
1380
1385
  }
1381
- onClick={() => setLanguage(item.code)}
1382
1386
  ></Dropdown.Item>
1383
1387
  ))}
1384
1388
  </ul>
@@ -176,7 +176,7 @@ const FirstLevelContent = ({ element, renderMenuItem, pathName }) => {
176
176
  defaultIndex = index;
177
177
  }
178
178
  x.title = (
179
- <Accordion.Title key={`title=${index}`}>
179
+ <Accordion.Title key={`title=${index}`} as="button">
180
180
  {item.title}
181
181
  <Icon className="ri-arrow-down-s-line" size="small" />
182
182
  </Accordion.Title>
@@ -279,7 +279,7 @@ const NestedAccordion = ({ menuItems, renderMenuItem, pathName }) => {
279
279
  defaultIndex = index;
280
280
  }
281
281
  x.title = (
282
- <Accordion.Title key={`title-${index}`} index={index}>
282
+ <Accordion.Title key={`title-${index}`} index={index} as="button">
283
283
  {element.title}
284
284
  <Icon className="ri-arrow-down-s-line" size="small" />
285
285
  </Accordion.Title>
@@ -10,9 +10,9 @@ function HeaderSearchPopUp({ onClose, searchInputRef, triggerRefs = [] }) {
10
10
 
11
11
  return (
12
12
  <div id="search-box" ref={nodeRef}>
13
- <form>
13
+ <div className="wrapper">
14
14
  <Container>
15
- <div className="wrapper">
15
+ <form>
16
16
  <Input
17
17
  ref={searchInputRef}
18
18
  className="search"
@@ -20,30 +20,21 @@ function HeaderSearchPopUp({ onClose, searchInputRef, triggerRefs = [] }) {
20
20
  placeholder="Search..."
21
21
  fluid
22
22
  />
23
- {/* <div className="action">
24
- <Button icon labelPosition="left" className="search">
25
- <Icon name="search" />
26
- Advanced Search
27
- </Button>
28
- </div> */}
29
- </div>
23
+ </form>
30
24
  </Container>
31
- </form>
32
25
 
33
- <div className="advanced-search">
34
- <Container>
35
- <p>
36
- Looking for more information? Try searching the full EEA website
37
- content
38
- </p>
39
- <a
40
- href="/"
41
- className="ui button white inverted"
42
- title="Advanced search"
43
- >
44
- Go to full site search
45
- </a>
46
- </Container>
26
+ <div className="advanced-search">
27
+ <Container>
28
+ <div>For more search options</div>
29
+ <a
30
+ href="/"
31
+ className="ui button white inverted"
32
+ title="Advanced search"
33
+ >
34
+ Go to advanced search
35
+ </a>
36
+ </Container>
37
+ </div>
47
38
  </div>
48
39
  </div>
49
40
  );
@@ -15,7 +15,7 @@ import { Image } from 'semantic-ui-react';
15
15
  */
16
16
  const Logo = ({ src, invertedSrc, id, url, alt, title, inverted }) => {
17
17
  return (
18
- <Link to={url} title={title}>
18
+ <Link to={url} title={title} className={'logo'}>
19
19
  <Image
20
20
  src={inverted ? invertedSrc : src}
21
21
  alt={alt}
package/templates/eea.hbs CHANGED
@@ -2,7 +2,7 @@
2
2
  title: What's new
3
3
  ---
4
4
 
5
- ### EEA Design System (1.0.0-alpha)
5
+ ### EEA Design System (1.0.0-beta)
6
6
 
7
7
  #### Components ready to be used
8
8
 
@@ -20,7 +20,7 @@
20
20
  rgba(255, 255, 255, 0),
21
21
  rgba(255, 255, 255, 0)
22
22
  ),
23
- url('../assets/images/loaderImage.png');
23
+ url('../assets/images/loader-image.png');
24
24
  background-position: @eeaLoaderBackgroundPosition;
25
25
  background-repeat: no-repeat;
26
26
  border-radius: @eeaLoaderBorderRadius;
@@ -35,7 +35,7 @@
35
35
  rgba(255, 255, 255, 0),
36
36
  rgba(255, 255, 255, 0)
37
37
  ),
38
- url('../assets/images/loaderImage.png');
38
+ url('../assets/images/loader-image.png');
39
39
  }
40
40
 
41
41
  5% {
@@ -43,7 +43,7 @@
43
43
  rgba(255, 255, 255, 0),
44
44
  rgba(255, 255, 255, 0)
45
45
  ),
46
- url('../assets/images/loaderImage.png');
46
+ url('../assets/images/loader-image.png');
47
47
  }
48
48
 
49
49
  10% {
@@ -51,7 +51,7 @@
51
51
  rgba(255, 255, 255, 0),
52
52
  rgba(255, 255, 255, 0)
53
53
  ),
54
- url('../assets/images/loaderImage.png');
54
+ url('../assets/images/loader-image.png');
55
55
  }
56
56
 
57
57
  15% {
@@ -59,7 +59,7 @@
59
59
  rgba(255, 255, 255, 0.1),
60
60
  rgba(255, 255, 255, 0.1)
61
61
  ),
62
- url('../assets/images/loaderImage.png');
62
+ url('../assets/images/loader-image.png');
63
63
  }
64
64
 
65
65
  20% {
@@ -67,7 +67,7 @@
67
67
  rgba(255, 255, 255, 0.2),
68
68
  rgba(255, 255, 255, 0.2)
69
69
  ),
70
- url('../assets/images/loaderImage.png');
70
+ url('../assets/images/loader-image.png');
71
71
  }
72
72
 
73
73
  25% {
@@ -75,7 +75,7 @@
75
75
  rgba(255, 255, 255, 0.3),
76
76
  rgba(255, 255, 255, 0.3)
77
77
  ),
78
- url('../assets/images/loaderImage.png');
78
+ url('../assets/images/loader-image.png');
79
79
  }
80
80
 
81
81
  30% {
@@ -83,7 +83,7 @@
83
83
  rgba(255, 255, 255, 0.4),
84
84
  rgba(255, 255, 255, 0.4)
85
85
  ),
86
- url('../assets/images/loaderImage.png');
86
+ url('../assets/images/loader-image.png');
87
87
  }
88
88
 
89
89
  35% {
@@ -91,7 +91,7 @@
91
91
  rgba(255, 255, 255, 0.5),
92
92
  rgba(255, 255, 255, 0.5)
93
93
  ),
94
- url('../assets/images/loaderImage.png');
94
+ url('../assets/images/loader-image.png');
95
95
  }
96
96
 
97
97
  40% {
@@ -99,7 +99,7 @@
99
99
  rgba(255, 255, 255, 0.6),
100
100
  rgba(255, 255, 255, 0.6)
101
101
  ),
102
- url('../assets/images/loaderImage.png');
102
+ url('../assets/images/loader-image.png');
103
103
  }
104
104
 
105
105
  45% {
@@ -107,7 +107,7 @@
107
107
  rgba(255, 255, 255, 0.7),
108
108
  rgba(255, 255, 255, 0.7)
109
109
  ),
110
- url('../assets/images/loaderImage.png');
110
+ url('../assets/images/loader-image.png');
111
111
  }
112
112
 
113
113
  50% {
@@ -115,7 +115,7 @@
115
115
  rgba(255, 255, 255, 0.75),
116
116
  rgba(255, 255, 255, 0.8)
117
117
  ),
118
- url('../assets/images/loaderImage.png');
118
+ url('../assets/images/loader-image.png');
119
119
  }
120
120
 
121
121
  55% {
@@ -123,7 +123,7 @@
123
123
  rgba(255, 255, 255, 0.7),
124
124
  rgba(255, 255, 255, 0.7)
125
125
  ),
126
- url('../assets/images/loaderImage.png');
126
+ url('../assets/images/loader-image.png');
127
127
  }
128
128
 
129
129
  60% {
@@ -131,7 +131,7 @@
131
131
  rgba(255, 255, 255, 0.6),
132
132
  rgba(255, 255, 255, 0.6)
133
133
  ),
134
- url('../assets/images/loaderImage.png');
134
+ url('../assets/images/loader-image.png');
135
135
  }
136
136
 
137
137
  65% {
@@ -139,7 +139,7 @@
139
139
  rgba(255, 255, 255, 0.5),
140
140
  rgba(255, 255, 255, 0.5)
141
141
  ),
142
- url('../assets/images/loaderImage.png');
142
+ url('../assets/images/loader-image.png');
143
143
  }
144
144
 
145
145
  70% {
@@ -147,7 +147,7 @@
147
147
  rgba(255, 255, 255, 0.4),
148
148
  rgba(255, 255, 255, 0.4)
149
149
  ),
150
- url('../assets/images/loaderImage.png');
150
+ url('../assets/images/loader-image.png');
151
151
  }
152
152
 
153
153
  75% {
@@ -155,7 +155,7 @@
155
155
  rgba(255, 255, 255, 0.3),
156
156
  rgba(255, 255, 255, 0.3)
157
157
  ),
158
- url('../assets/images/loaderImage.png');
158
+ url('../assets/images/loader-image.png');
159
159
  }
160
160
 
161
161
  80% {
@@ -163,7 +163,7 @@
163
163
  rgba(255, 255, 255, 0.2),
164
164
  rgba(255, 255, 255, 0.2)
165
165
  ),
166
- url('../assets/images/loaderImage.png');
166
+ url('../assets/images/loader-image.png');
167
167
  }
168
168
 
169
169
  85% {
@@ -171,7 +171,7 @@
171
171
  rgba(255, 255, 255, 0.1),
172
172
  rgba(255, 255, 255, 0.1)
173
173
  ),
174
- url('../assets/images/loaderImage.png');
174
+ url('../assets/images/loader-image.png');
175
175
  }
176
176
 
177
177
  90% {
@@ -179,7 +179,7 @@
179
179
  rgba(255, 255, 255, 0),
180
180
  rgba(255, 255, 255, 0)
181
181
  ),
182
- url('../assets/images/loaderImage.png');
182
+ url('../assets/images/loader-image.png');
183
183
  }
184
184
 
185
185
  95% {
@@ -187,7 +187,7 @@
187
187
  rgba(255, 255, 255, 0),
188
188
  rgba(255, 255, 255, 0)
189
189
  ),
190
- url('../assets/images/loaderImage.png');
190
+ url('../assets/images/loader-image.png');
191
191
  }
192
192
 
193
193
  100% {
@@ -195,6 +195,6 @@
195
195
  rgba(255, 255, 255, 0),
196
196
  rgba(255, 255, 255, 0)
197
197
  ),
198
- url('../assets/images/loaderImage.png');
198
+ url('../assets/images/loader-image.png');
199
199
  }
200
200
  }