@eeacms/volto-eea-design-system 1.0.0-beta.2 → 1.0.0-beta.4
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 +71 -0
- package/package.json +1 -1
- package/src/ui/Accordion/Accordion.stories.js +4 -0
- package/src/ui/Footer/Description.jsx +23 -0
- package/src/ui/Footer/Footer.jsx +2 -0
- package/src/ui/Footer/Footer.stories.js +1 -0
- package/src/ui/Footer/FooterActions.jsx +2 -2
- package/src/ui/Footer/FooterHeader.jsx +1 -1
- package/src/ui/Footer/SubFooter.jsx +2 -0
- package/src/ui/Header/Header.jsx +43 -11
- package/src/ui/Header/Header.stories.js +7 -3
- package/src/ui/Header/HeaderMenuPopUp.js +2 -2
- package/src/ui/Header/HeaderSearchPopUp.js +15 -24
- package/src/ui/Logo/Logo.jsx +1 -1
- package/theme/theme.config +1 -0
- package/theme/themes/eea/elements/loader.overrides +22 -22
- package/theme/themes/eea/extras/footer.less +30 -26
- package/theme/themes/eea/extras/footer.variables +13 -10
- package/theme/themes/eea/extras/header.less +32 -11
- package/theme/themes/eea/extras/header.variables +1 -0
- package/theme/themes/eea/globals/site.overrides +6 -0
- package/theme/themes/eea/globals/site.variables +3 -0
- package/theme/themes/eea/modules/accordion.overrides +23 -7
- package/theme/themes/eea/views/card.overrides +2 -2
- package/theme/themes/eea/views/card.variables +2 -2
- package/theme/themes/eea/assets/images/EEA_Logo_Vertical.png +0 -0
- package/theme/themes/eea/assets/images/Footer/EEALogo.png +0 -0
- package/theme/themes/eea/assets/images/Footer/EULogo.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Extras/Logo1.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Extras/Logo10.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Extras/Logo2.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Extras/Logo3.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Extras/Logo4.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Extras/Logo5.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Extras/Logo6.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Extras/Logo7.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Extras/Logo8.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Extras/Logo9.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Extras/abstract-visual.svg +0 -32
- package/theme/themes/eea/assets/images/Footer/Vector1.png +0 -0
- package/theme/themes/eea/assets/images/Footer/Vector2.png +0 -0
- package/theme/themes/eea/assets/images/Header/Vector.png +0 -0
- package/theme/themes/eea/assets/images/Header/close.png +0 -0
- package/theme/themes/eea/assets/images/Header/down-arrow.png +0 -0
- package/theme/themes/eea/assets/images/Header/eeaIcon.png +0 -0
- package/theme/themes/eea/assets/images/Header/globeIcon.png +0 -0
- package/theme/themes/eea/assets/images/Header/hamburgerMenuIcon.png +0 -0
- package/theme/themes/eea/assets/images/Header/menu-left-arrow.svg +0 -3
- package/theme/themes/eea/assets/images/Header/search.png +0 -0
- package/theme/themes/eea/assets/images/Header/searchIcon.png +0 -0
- package/theme/themes/eea/assets/images/Svg/arrow-double-right.svg +0 -4
- package/theme/themes/eea/assets/images/arrow-down.svg +0 -10
- package/theme/themes/eea/assets/images/eea_icon.png +0 -0
- package/theme/themes/eea/assets/images/mega-menu-arrow.svg +0 -3
- /package/theme/themes/eea/assets/images/Footer/Extras/{footervisual.svg → footer-visual.svg} +0 -0
- /package/theme/themes/eea/assets/images/{loaderImage.png → loader-image.png} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,81 @@ 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.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-beta.3...1.0.0-beta.4) - 28 February 2023
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat(footer): Add footer description #306 from eea/footer-description [ichim-david - [`bf655d1`](https://github.com/eea/volto-eea-design-system/commit/bf655d133dd75b217c34b3d4303ad450a59f2c51)]
|
|
12
|
+
- feat(footer): Add footer description [kreafox - [`2ad0f71`](https://github.com/eea/volto-eea-design-system/commit/2ad0f714556c5b8c2fd95a2caea5c3a1e82c75d1)]
|
|
13
|
+
|
|
14
|
+
#### :bug: Bug Fixes
|
|
15
|
+
|
|
16
|
+
- fix(footer): Add class for children [kreafox - [`3c50d15`](https://github.com/eea/volto-eea-design-system/commit/3c50d15cd6ed46d78ef10d48fd851ed7c4b5ddea)]
|
|
17
|
+
- fix(footer): Don't show empty row if description is not present [kreafox - [`2ca7f7d`](https://github.com/eea/volto-eea-design-system/commit/2ca7f7d3247668ae8583b8cd629856aac82eb07d)]
|
|
18
|
+
- fix(search): Fix search links color #307 from eea/search-accessibility [ichim-david - [`a76f48b`](https://github.com/eea/volto-eea-design-system/commit/a76f48bab3a7d3f6b748eaa85b33266401372e40)]
|
|
19
|
+
- fix(search): Fix search links color [kreafox - [`69c42ef`](https://github.com/eea/volto-eea-design-system/commit/69c42effc5bdc3d31f18de74d77a3b7cc0018dc5)]
|
|
20
|
+
|
|
21
|
+
#### :nail_care: Enhancements
|
|
22
|
+
|
|
23
|
+
- change(carousel): tweak card width and padding for better arrow alignment [David Ichim - [`e184f70`](https://github.com/eea/volto-eea-design-system/commit/e184f70062d622e1ec53e8e1e2b012c080e62d77)]
|
|
24
|
+
- change(storybook): include footer description in storybook [kreafox - [`e904aa0`](https://github.com/eea/volto-eea-design-system/commit/e904aa0850e101d736e8d045e822d9a58b75ff6a)]
|
|
25
|
+
|
|
26
|
+
#### :hammer_and_wrench: Others
|
|
27
|
+
|
|
28
|
+
- Release 1.0.0-beta.4 [Alin Voinea - [`8c335c5`](https://github.com/eea/volto-eea-design-system/commit/8c335c56c5a2a76ea87f9da318055770f904e649)]
|
|
29
|
+
- Back to dev [Alin Voinea - [`38b0333`](https://github.com/eea/volto-eea-design-system/commit/38b03333066416915b056f8ac45da4de87ed7184)]
|
|
30
|
+
### [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
|
|
31
|
+
|
|
32
|
+
#### :rocket: New Features
|
|
33
|
+
|
|
34
|
+
- 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)]
|
|
35
|
+
|
|
36
|
+
#### :bug: Bug Fixes
|
|
37
|
+
|
|
38
|
+
- 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)]
|
|
39
|
+
|
|
40
|
+
#### :nail_care: Enhancements
|
|
41
|
+
|
|
42
|
+
- 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)]
|
|
43
|
+
- change(language): hide language dropdown by default [David Ichim - [`cc6064f`](https://github.com/eea/volto-eea-design-system/commit/cc6064f72dcb4dbf96e9b05205cc796775d75205)]
|
|
44
|
+
- 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)]
|
|
45
|
+
- change(language): dropdown to use links for proper keyboard navigation [David Ichim - [`6a7de30`](https://github.com/eea/volto-eea-design-system/commit/6a7de30d9d229443d6d2070d9649129e6d35badf)]
|
|
46
|
+
- change(search): to reflect changes from eea-website-theme [David Ichim - [`2cc35e0`](https://github.com/eea/volto-eea-design-system/commit/2cc35e0da6e6eac1473724293fcf6cd6b0a914b5)]
|
|
47
|
+
- change(button): set focus styling for buttons [ichim-david - [`33ebfca`](https://github.com/eea/volto-eea-design-system/commit/33ebfcacb014fca365ae58079bfa5429d9007e54)]
|
|
48
|
+
- 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)]
|
|
49
|
+
- change(accessibility): style outline instead of box-shadow [David Ichim - [`53209f3`](https://github.com/eea/volto-eea-design-system/commit/53209f3b28c9a1dd54a8a86ab418b8bc2a8e01b3)]
|
|
50
|
+
- change(header): set the logo class directly on the link [David Ichim - [`f8fba50`](https://github.com/eea/volto-eea-design-system/commit/f8fba508f925d9e6b86720fcb2c7dcfffee4ab5e)]
|
|
51
|
+
- 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)]
|
|
52
|
+
- 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)]
|
|
53
|
+
- refactor(Footer): update mobile header size [Antonis Tarantilis - [`01ab7f0`](https://github.com/eea/volto-eea-design-system/commit/01ab7f0d9abe688b3d96aaec018838e1abefec73)]
|
|
54
|
+
- refactor(footer): update p with h3 heading tag for header [Antonis Tarantilis - [`ca1477b`](https://github.com/eea/volto-eea-design-system/commit/ca1477b554f56423d40a33d8ee788c3f3bd3e341)]
|
|
55
|
+
- refactor(docusaurus): cleanup decorative images [Giorgos Stamatis - [`fedc4d4`](https://github.com/eea/volto-eea-design-system/commit/fedc4d4dc156f9c1394fcedcebece4fb87dc70b6)]
|
|
56
|
+
- refactor(images): remove unused docusaurus svgs [Giorgos Stamatis - [`c5ef14c`](https://github.com/eea/volto-eea-design-system/commit/c5ef14cdb1923d803feb673559d41b3064211653)]
|
|
57
|
+
- refactor(Accessibility): add box-shadow on focus-visible components [Antonis Tarantilis - [`b1adcc3`](https://github.com/eea/volto-eea-design-system/commit/b1adcc315a89c7d3431e542e8d1b6ec479a346e2)]
|
|
58
|
+
- refactor(images): clear docusaurus unused pngs [Giorgos Stamatis - [`db5c611`](https://github.com/eea/volto-eea-design-system/commit/db5c61124182e3030f753f6baa294fbdecaa3798)]
|
|
59
|
+
- 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)]
|
|
60
|
+
- 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)]
|
|
61
|
+
- refactor(images): cleared unused/renamed images assets [Giorgos Stamatis - [`821f5c1`](https://github.com/eea/volto-eea-design-system/commit/821f5c1da5c1e2350818cd9b8b82bc0b1893370d)]
|
|
62
|
+
- refactor(header-images): removed unused [Giorgos Stamatis - [`8250d94`](https://github.com/eea/volto-eea-design-system/commit/8250d94421d9d1ee13144e71bc0938af2b7309f5)]
|
|
63
|
+
- refactor(footer images): removed unused/renamed [Giorgos Stamatis - [`186de6b`](https://github.com/eea/volto-eea-design-system/commit/186de6b23906e05ec700c3db5180a4d7f7e5ed68)]
|
|
64
|
+
|
|
65
|
+
#### :house: Internal changes
|
|
66
|
+
|
|
67
|
+
- style(header): react syntax fix [Antonis Tarantilis - [`3add127`](https://github.com/eea/volto-eea-design-system/commit/3add1271c785a92bea0ef925d7bc562cef1e0d92)]
|
|
68
|
+
|
|
69
|
+
#### :house: Documentation changes
|
|
70
|
+
|
|
71
|
+
- docs(guidelines): add image name convention [Giorgos Stamatis - [`290747c`](https://github.com/eea/volto-eea-design-system/commit/290747c8df6919199577bc7fce6a0e337cb57853)]
|
|
72
|
+
|
|
73
|
+
#### :hammer_and_wrench: Others
|
|
74
|
+
|
|
75
|
+
- Release 1.0.0-beta.3 [Alin Voinea - [`386c903`](https://github.com/eea/volto-eea-design-system/commit/386c9032d39317b0bb95191bd59e3b7a99bded69)]
|
|
76
|
+
- Avoid warning in FooterActions [Tiberiu Ichim - [`0fe73d7`](https://github.com/eea/volto-eea-design-system/commit/0fe73d70e44e32be73049f3b5cf826de42115942)]
|
|
7
77
|
### [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
|
|
8
78
|
|
|
9
79
|
#### :bug: Bug Fixes
|
|
10
80
|
|
|
81
|
+
- fix(footer): action and copyright #300 from eea/develop [ichim-david - [`579f3e4`](https://github.com/eea/volto-eea-design-system/commit/579f3e436e9608b38a2407a16c070345462bfccc)]
|
|
11
82
|
- fix(accessibility): added navigation and footer id's for skip link [David Ichim - [`48354b9`](https://github.com/eea/volto-eea-design-system/commit/48354b908e7d1a87b4e1a965d225e8f1b3e0ac59)]
|
|
12
83
|
- 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)]
|
|
13
84
|
|
package/package.json
CHANGED
|
@@ -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" />
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { Grid } from 'semantic-ui-react';
|
|
4
|
+
|
|
5
|
+
const Description = (props) => {
|
|
6
|
+
if (props.children) {
|
|
7
|
+
return <div className="footer-description">{props.children}</div>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
return props.description ? (
|
|
11
|
+
<Grid.Row>
|
|
12
|
+
<div className="footer-description">
|
|
13
|
+
<p>{props.description}</p>
|
|
14
|
+
</div>
|
|
15
|
+
</Grid.Row>
|
|
16
|
+
) : null;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
Description.propTypes = {
|
|
20
|
+
description: PropTypes.string,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default Description;
|
package/src/ui/Footer/Footer.jsx
CHANGED
|
@@ -12,6 +12,7 @@ import FooterHeader from '@eeacms/volto-eea-design-system/ui/Footer/FooterHeader
|
|
|
12
12
|
import SubFooter from '@eeacms/volto-eea-design-system/ui/Footer/SubFooter';
|
|
13
13
|
import Social from '@eeacms/volto-eea-design-system/ui/Footer/Social';
|
|
14
14
|
import Contact from '@eeacms/volto-eea-design-system/ui/Footer/Contact';
|
|
15
|
+
import Description from '@eeacms/volto-eea-design-system/ui/Footer/Description';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* Component to display the footer.
|
|
@@ -37,6 +38,7 @@ Footer.Header = FooterHeader;
|
|
|
37
38
|
Footer.Sites = FooterSites;
|
|
38
39
|
Footer.Social = Social;
|
|
39
40
|
Footer.SubFooter = SubFooter;
|
|
41
|
+
Footer.Description = Description;
|
|
40
42
|
|
|
41
43
|
/**
|
|
42
44
|
* Property types.
|
|
@@ -29,7 +29,7 @@ const FooterActions = (props) => {
|
|
|
29
29
|
<div className="copyright">
|
|
30
30
|
{props.copyright &&
|
|
31
31
|
props.copyright.map((copyright, index) => (
|
|
32
|
-
|
|
32
|
+
<React.Fragment key={index}>
|
|
33
33
|
<a
|
|
34
34
|
href={copyright.link}
|
|
35
35
|
key={index}
|
|
@@ -38,7 +38,7 @@ const FooterActions = (props) => {
|
|
|
38
38
|
>
|
|
39
39
|
{copyright.title}
|
|
40
40
|
</a>
|
|
41
|
-
|
|
41
|
+
</React.Fragment>
|
|
42
42
|
))}
|
|
43
43
|
</div>
|
|
44
44
|
</Grid.Column>
|
package/src/ui/Header/Header.jsx
CHANGED
|
@@ -41,7 +41,7 @@ const TopDropdownMenu = ({
|
|
|
41
41
|
children,
|
|
42
42
|
className,
|
|
43
43
|
icon,
|
|
44
|
-
hasLanguageDropdown =
|
|
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={
|
|
66
|
-
closeOnBlur={
|
|
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={
|
|
79
|
-
closeOnBlur={
|
|
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';
|
|
@@ -255,10 +283,12 @@ const Main = ({
|
|
|
255
283
|
</div>
|
|
256
284
|
)}
|
|
257
285
|
{!hideSearch && (
|
|
258
|
-
<
|
|
286
|
+
<button
|
|
259
287
|
className="search-action"
|
|
260
288
|
onClick={searchOnClick}
|
|
261
|
-
|
|
289
|
+
tabIndex="0"
|
|
290
|
+
aria-pressed="false"
|
|
291
|
+
aria-haspopup="true"
|
|
262
292
|
ref={searchButtonRef}
|
|
263
293
|
>
|
|
264
294
|
{/* <Icon name={!state.activeSearch ? 'search' : 'close'} /> */}
|
|
@@ -266,7 +296,7 @@ const Main = ({
|
|
|
266
296
|
src={!searchIsActive ? `${searchIcon}` : `${closeIcon}`}
|
|
267
297
|
alt="search button open/close"
|
|
268
298
|
/>
|
|
269
|
-
</
|
|
299
|
+
</button>
|
|
270
300
|
)}
|
|
271
301
|
<Header.BurgerAction
|
|
272
302
|
className={`mobile ${burger}`}
|
|
@@ -303,14 +333,16 @@ const Main = ({
|
|
|
303
333
|
};
|
|
304
334
|
|
|
305
335
|
const BurgerAction = React.forwardRef((props, ref) => (
|
|
306
|
-
<
|
|
336
|
+
<button
|
|
307
337
|
ref={ref}
|
|
308
338
|
className={`burger-action ${props.className}`}
|
|
309
|
-
|
|
339
|
+
tabIndex="0"
|
|
340
|
+
aria-pressed="false"
|
|
341
|
+
aria-haspopup="true"
|
|
310
342
|
onClick={props.onClick}
|
|
311
343
|
>
|
|
312
344
|
{props.children}
|
|
313
|
-
</
|
|
345
|
+
</button>
|
|
314
346
|
));
|
|
315
347
|
|
|
316
348
|
Header.BurgerAction = BurgerAction;
|
|
@@ -1371,14 +1371,18 @@ const Template = (args) => {
|
|
|
1371
1371
|
as="li"
|
|
1372
1372
|
key={index}
|
|
1373
1373
|
text={
|
|
1374
|
-
<
|
|
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
|
-
</
|
|
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
|
-
<
|
|
13
|
+
<div className="wrapper">
|
|
14
14
|
<Container>
|
|
15
|
-
<
|
|
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
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
>
|
|
44
|
-
|
|
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
|
);
|
package/src/ui/Logo/Logo.jsx
CHANGED
|
@@ -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/theme/theme.config
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
rgba(255, 255, 255, 0),
|
|
21
21
|
rgba(255, 255, 255, 0)
|
|
22
22
|
),
|
|
23
|
-
url('../assets/images/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
198
|
+
url('../assets/images/loader-image.png');
|
|
199
199
|
}
|
|
200
200
|
}
|