@eeacms/volto-eea-design-system 1.20.0 → 1.21.1
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 +54 -1
- package/cypress.config.js +3 -3
- package/package.json +1 -1
- package/src/ui/Banner/Banner.jsx +6 -5
- package/src/ui/Card/Card.stories.jsx +147 -81
- package/src/ui/Card/Card.stories.test.jsx +11 -1
- package/src/ui/Footer/Footer.jsx +2 -2
- package/src/ui/Header/Header.jsx +71 -71
- package/src/ui/Header/Header.stories.js +44 -41
- package/src/ui/Header/Header.test.jsx +102 -4
- package/src/ui/Header/HeaderMenuPopUp.js +2 -3
- package/src/ui/InpageNavigation/InpageNavigation.jsx +5 -1
- package/src/ui/Item/Item.stories.test.js +2 -2
- package/src/ui/Item/ItemGroupWithIcons.stories.js +28 -18
- package/src/ui/Message/Message.stories.js +6 -6
- package/src/ui/Message/Message.stories.test.js +11 -5
- package/src/ui/TagList/TagList.stories.jsx +1 -1
- package/theme/themes/eea/extras/header.less +2 -15
- package/theme/themes/eea/extras/header.variables +1 -3
- package/theme/themes/eea/extras/tag.less +5 -0
- package/theme/themes/eea/extras/tag.variables +1 -1
- package/theme/themes/eea/globals/utilities.less +21 -1
- package/theme/themes/eea/modules/search.overrides +2 -2
- package/theme/themes/eea/views/card.overrides +2 -1
- package/theme/themes/eea/views/card.variables +2 -2
- package/theme/themes/eea/views/item.overrides +14 -20
- package/theme/themes/eea/views/item.variables +3 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,38 @@ 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.
|
|
7
|
+
### [1.21.1](https://github.com/eea/volto-eea-design-system/compare/1.21.0...1.21.1) - 21 November 2023
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: Regression on Button.Action component when used with RSS link [Alin Voinea - [`dd4548d`](https://github.com/eea/volto-eea-design-system/commit/dd4548de999787eff688b4ee36860d69459735c3)]
|
|
12
|
+
|
|
13
|
+
### [1.21.0](https://github.com/eea/volto-eea-design-system/compare/1.20.0...1.21.0) - 20 November 2023
|
|
14
|
+
|
|
15
|
+
#### :bug: Bug Fixes
|
|
16
|
+
|
|
17
|
+
- fix(item): styling difference so that column group or section group flex template match design [David Ichim - [`f57e074`](https://github.com/eea/volto-eea-design-system/commit/f57e0744808df8b467e179b83266e8b2c2398956)]
|
|
18
|
+
|
|
19
|
+
#### :nail_care: Enhancements
|
|
20
|
+
|
|
21
|
+
- change(message): Renamed Error to ErrorMessage to avoid special identifier Sonarqube warning [David Ichim - [`09e49ac`](https://github.com/eea/volto-eea-design-system/commit/09e49ac4e71c02b439459eec29266d3f5b884d50)]
|
|
22
|
+
- change(header): dropdowns now auto open and close on focus and blur when using keyboard navigation [David Ichim - [`d558e9b`](https://github.com/eea/volto-eea-design-system/commit/d558e9bf7abba19221744be871759d025ce0f05a)]
|
|
23
|
+
|
|
24
|
+
#### :hammer_and_wrench: Others
|
|
25
|
+
|
|
26
|
+
- Release 1.21.0 [Alin Voinea - [`fe39edd`](https://github.com/eea/volto-eea-design-system/commit/fe39edde81fd4f01f7958aee706887a5dedce521)]
|
|
27
|
+
- Modified test to reference ErrorMessage [David Ichim - [`36fefd0`](https://github.com/eea/volto-eea-design-system/commit/36fefd05a6b30d92494a7974c9fb86d35cae5acc)]
|
|
28
|
+
- Lint fix [David Ichim - [`c1fc104`](https://github.com/eea/volto-eea-design-system/commit/c1fc104f1e7be0611de4aa17c55ad9c402c70ff8)]
|
|
29
|
+
- Test Header onBlur [David Ichim - [`42f9c97`](https://github.com/eea/volto-eea-design-system/commit/42f9c97d01f7b59a1c63e42e1825dfa0697f0ef2)]
|
|
30
|
+
- Add dropdown test case to Header component [David Ichim - [`9ea3234`](https://github.com/eea/volto-eea-design-system/commit/9ea3234c2c0f1c819c7c2b54a75c56cda7812c56)]
|
|
31
|
+
- Remove unused import in Header.test.jsx [David Ichim - [`082069e`](https://github.com/eea/volto-eea-design-system/commit/082069e1f057786e0f1fb00c98d54b8e03b5d9c5)]
|
|
32
|
+
- Added some tests for TopDropdownMenu mobile and dropdown interaction [David Ichim - [`9d24488`](https://github.com/eea/volto-eea-design-system/commit/9d24488c1e97b2b1b14bd9bd8cb6f5b68414794b)]
|
|
33
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`eadf018`](https://github.com/eea/volto-eea-design-system/commit/eadf018aa1f32d310619ce4ef08f9b11950a20dc)]
|
|
34
|
+
- Lint fix [David Ichim - [`e29fd50`](https://github.com/eea/volto-eea-design-system/commit/e29fd50ee73477007dcf94a268596e6c11176d7b)]
|
|
35
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`947cb92`](https://github.com/eea/volto-eea-design-system/commit/947cb929c01ebb6f46bf124833fe1fec0f385edb)]
|
|
36
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`8356dfe`](https://github.com/eea/volto-eea-design-system/commit/8356dfe929039dcd165af0692cbbfc771a0f7fb4)]
|
|
37
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`e38f17e`](https://github.com/eea/volto-eea-design-system/commit/e38f17ed735e743e59df7d06ca723c1218bdb569)]
|
|
38
|
+
### [1.20.0](https://github.com/eea/volto-eea-design-system/compare/1.19.0...1.20.0) - 2 November 2023
|
|
8
39
|
|
|
9
40
|
#### :rocket: New Features
|
|
10
41
|
|
|
@@ -36,6 +67,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
36
67
|
|
|
37
68
|
#### :house: Internal changes
|
|
38
69
|
|
|
70
|
+
- chore: [JENKINS] do not run tests on PR comments [valentinab25 - [`51b68fc`](https://github.com/eea/volto-eea-design-system/commit/51b68fc76a956996e01521b784262c67e7094d35)]
|
|
71
|
+
- chore: [JENKINS] add comment step [valentinab25 - [`5022758`](https://github.com/eea/volto-eea-design-system/commit/50227587db2c72d17e26e7b66f28d4c09b760873)]
|
|
72
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`a70ca64`](https://github.com/eea/volto-eea-design-system/commit/a70ca642918f578d6737d975e4769bac8312f48d)]
|
|
39
73
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`59ecb8e`](https://github.com/eea/volto-eea-design-system/commit/59ecb8e28b259472303324f9655b0cbbcbbf9c23)]
|
|
40
74
|
|
|
41
75
|
#### :hammer_and_wrench: Others
|
|
@@ -161,6 +195,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
161
195
|
|
|
162
196
|
#### :hammer_and_wrench: Others
|
|
163
197
|
|
|
198
|
+
- test: Fix eslint and yarn i18n [Alin Voinea - [`331149f`](https://github.com/eea/volto-eea-design-system/commit/331149f5eb16a9cc6f2d996f7b793909773063c2)]
|
|
164
199
|
- i18n: Add en [Alin Voinea - [`4584295`](https://github.com/eea/volto-eea-design-system/commit/458429530d993c27cfb962ddfe2f376f3568bf01)]
|
|
165
200
|
- Release 1.17.0 [Alin Voinea - [`e3c25ee`](https://github.com/eea/volto-eea-design-system/commit/e3c25eeeca5e863244faae396b5aa915d0702633)]
|
|
166
201
|
- test: add unit tests for DS components - refs #254313 [ana-oprea - [`0c4d4d1`](https://github.com/eea/volto-eea-design-system/commit/0c4d4d118b8e13082c576dc5c2dce6a715f49006)]
|
|
@@ -270,6 +305,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
270
305
|
#### :hammer_and_wrench: Others
|
|
271
306
|
|
|
272
307
|
- Release 1.14.0 [Alin Voinea - [`cb9084f`](https://github.com/eea/volto-eea-design-system/commit/cb9084fb2246dc1b729e12a419a26daa12c26f7a)]
|
|
308
|
+
- test: [JENKINS] set pipe fail [valentinab25 - [`1cdfc39`](https://github.com/eea/volto-eea-design-system/commit/1cdfc39d08f1ae301dea57f1e4be5265c4a4c6f9)]
|
|
273
309
|
- test: try storybook upload [valentinab25 - [`6d5833d`](https://github.com/eea/volto-eea-design-system/commit/6d5833d4419d00f1ac04c9eb78a0884214f9a494)]
|
|
274
310
|
- test: remove useless code [valentinab25 - [`2c14b0c`](https://github.com/eea/volto-eea-design-system/commit/2c14b0ce4596cfc11a81b9762677596d1861acfe)]
|
|
275
311
|
### [1.13.2](https://github.com/eea/volto-eea-design-system/compare/1.13.1...1.13.2) - 13 June 2023
|
|
@@ -308,6 +344,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
308
344
|
|
|
309
345
|
#### :house: Internal changes
|
|
310
346
|
|
|
347
|
+
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`fb2b166`](https://github.com/eea/volto-eea-design-system/commit/fb2b166d64f95a1c183901abfe0fe0254d1bbc7a)]
|
|
311
348
|
|
|
312
349
|
#### :house: Documentation changes
|
|
313
350
|
|
|
@@ -641,6 +678,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
641
678
|
|
|
642
679
|
- Release 1.0.0-beta.5 [Alin Voinea - [`e4417e1`](https://github.com/eea/volto-eea-design-system/commit/e4417e121477511c350ae3fbe4e70aadb445ed86)]
|
|
643
680
|
- better useOnScreen hook [Andrei Grigore - [`c214b6b`](https://github.com/eea/volto-eea-design-system/commit/c214b6b76443f81c795ce2f3aa457562ec088b30)]
|
|
681
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b227cf8`](https://github.com/eea/volto-eea-design-system/commit/b227cf8a8c44b9d91e9fda8a7999fb0a42bacdca)]
|
|
644
682
|
- feature(mobile): increased performance by lazy loading footer images #303 from eea/increase_performance [ichim-david - [`80d1df1`](https://github.com/eea/volto-eea-design-system/commit/80d1df1c459680331d486f9e8e6a95c9db0adbf6)]
|
|
645
683
|
- prettier [David Ichim - [`a7f8384`](https://github.com/eea/volto-eea-design-system/commit/a7f838470c1bcc4e2be115d514d92a1b686a5e9b)]
|
|
646
684
|
- fixed less build failure due to changes in footer.less [David Ichim - [`190bc8c`](https://github.com/eea/volto-eea-design-system/commit/190bc8cfa88191b45808f1e27c6e2737ee3d15b1)]
|
|
@@ -711,6 +749,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
711
749
|
|
|
712
750
|
#### :house: Internal changes
|
|
713
751
|
|
|
752
|
+
- chore(docusaurus): ignore website/.yarn [Giorgos Stamatis - [`0b33ffd`](https://github.com/eea/volto-eea-design-system/commit/0b33ffd1dda61b126e3cc5ff48888124d6aee41b)]
|
|
714
753
|
- style(header): react syntax fix [Antonis Tarantilis - [`3add127`](https://github.com/eea/volto-eea-design-system/commit/3add1271c785a92bea0ef925d7bc562cef1e0d92)]
|
|
715
754
|
|
|
716
755
|
#### :house: Documentation changes
|
|
@@ -907,6 +946,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
907
946
|
|
|
908
947
|
- Release 1.0.0-alpha.10 [Alin Voinea - [`7014d08`](https://github.com/eea/volto-eea-design-system/commit/7014d080ce114bd0bc039abeecbd7229333b0971)]
|
|
909
948
|
- Add variable definitions [kreafox - [`293fe65`](https://github.com/eea/volto-eea-design-system/commit/293fe65e2f24e6290e1286229169a77f9be4750e)]
|
|
949
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`ef58a6f`](https://github.com/eea/volto-eea-design-system/commit/ef58a6f5ad8deea26b1395a86778fe1159b7617b)]
|
|
910
950
|
- Back to dev [Alin Voinea - [`31d4616`](https://github.com/eea/volto-eea-design-system/commit/31d461662b9184a7bbe190e86f3c47fab39229fe)]
|
|
911
951
|
### [1.0.0-alpha.9](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.8...1.0.0-alpha.9) - 28 December 2022
|
|
912
952
|
|
|
@@ -964,6 +1004,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
964
1004
|
- bump package version [David Ichim - [`b4628be`](https://github.com/eea/volto-eea-design-system/commit/b4628bed134abc76e38a243d4e98143e19cef989)]
|
|
965
1005
|
- feature(docusaurus, storybook): logos selection for sites plus inverted options #253 from eea/doc-logo-page [ichim-david - [`dbfc90d`](https://github.com/eea/volto-eea-design-system/commit/dbfc90d035dc40e9d4054347f00fde4de486d63d)]
|
|
966
1006
|
- (feat): Add ability to disable the language select from website top menu - refs #158616 [dobri1408 - [`411c8e4`](https://github.com/eea/volto-eea-design-system/commit/411c8e4afaf0b2b9edfdeeecdca22aa4cc41f329)]
|
|
1007
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`c4769e9`](https://github.com/eea/volto-eea-design-system/commit/c4769e987d525f5dcafac8e6cf8a89fd8111667d)]
|
|
967
1008
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`92feea0`](https://github.com/eea/volto-eea-design-system/commit/92feea09796c9ef0530f65fa1d34139905133215)]
|
|
968
1009
|
- Proof reading page header section [ichim-david - [`230239e`](https://github.com/eea/volto-eea-design-system/commit/230239e1b22734fb8606656985bc5e513731e244)]
|
|
969
1010
|
### [1.0.0-alpha.7](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.6...1.0.0-alpha.7) - 16 December 2022
|
|
@@ -995,6 +1036,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
995
1036
|
#### :hammer_and_wrench: Others
|
|
996
1037
|
|
|
997
1038
|
- Release 1.0.0-alpha.7 [Alin Voinea - [`7e66bcc`](https://github.com/eea/volto-eea-design-system/commit/7e66bcc296b389bc55073e7f99681534977dce3a)]
|
|
1039
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`ce47e9b`](https://github.com/eea/volto-eea-design-system/commit/ce47e9b163bcb4eda988e3a87718b54ffbd3f99f)]
|
|
998
1040
|
- added back descriptionDistance variable until package release [David Ichim - [`3af811a`](https://github.com/eea/volto-eea-design-system/commit/3af811a8d86a132e16de118697ba5a4302a8a4da)]
|
|
999
1041
|
- Back to dev [Alin Voinea - [`cb531c9`](https://github.com/eea/volto-eea-design-system/commit/cb531c933c907bdbb88c9de0f1df2eb7ce899a4c)]
|
|
1000
1042
|
- Proper paths if the package is not installed, but in development [Tiberiu Ichim - [`7a2655f`](https://github.com/eea/volto-eea-design-system/commit/7a2655f7cf9d3c687f172eefcf2b4cff4b12f832)]
|
|
@@ -1082,6 +1124,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1082
1124
|
#### :hammer_and_wrench: Others
|
|
1083
1125
|
|
|
1084
1126
|
- feature(Docusaurus): Updates on color palette information including thematic websites #231 from eea/refactor-docusaurus [ichim-david - [`ec7843d`](https://github.com/eea/volto-eea-design-system/commit/ec7843dea07f626dc1c71ae1baa8bb5b0caa52f3)]
|
|
1127
|
+
- Upgrade Jenkinsfile storybook to yarn 3 [Alin Voinea - [`d20de8d`](https://github.com/eea/volto-eea-design-system/commit/d20de8d6e21a14660b7b5125a80218a8a6f19e62)]
|
|
1085
1128
|
- Back to dev [Alin Voinea - [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)]
|
|
1086
1129
|
- perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
|
|
1087
1130
|
### [1.0.0-alpha.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.3...1.0.0-alpha.4) - 22 November 2022
|
|
@@ -1174,6 +1217,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1174
1217
|
- modified left value of full width classes with toolbars [David Ichim - [`70d82d4`](https://github.com/eea/volto-eea-design-system/commit/70d82d47fbc2c00a3a709de0d5c087c8443a1eae)]
|
|
1175
1218
|
- WIP settings column grid width when using full size class [David Ichim - [`affc7ac`](https://github.com/eea/volto-eea-design-system/commit/affc7ac99527aa92d5a192d90dc8c9ec46a66404)]
|
|
1176
1219
|
- fix eslint [Miu Razvan - [`30c52e4`](https://github.com/eea/volto-eea-design-system/commit/30c52e4eb443555ca44c1b35df064e73d52c0a8b)]
|
|
1220
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`76a41c7`](https://github.com/eea/volto-eea-design-system/commit/76a41c786995fd54afe4d1c345de939f683ffa70)]
|
|
1177
1221
|
- fix broken variable call for contentBox.variables introduced in previous commit by mistake [David Ichim - [`d249c11`](https://github.com/eea/volto-eea-design-system/commit/d249c1160d19bedb174a2fde3fdab48d9ce297d4)]
|
|
1178
1222
|
- clean up [Miu Razvan - [`89f3cb3`](https://github.com/eea/volto-eea-design-system/commit/89f3cb33d70a14806a953f0acd1807e94169ee5c)]
|
|
1179
1223
|
- Feature(container): flexible container size #260 from eea/feature-flexible-container [ichim-david - [`8f84c5b`](https://github.com/eea/volto-eea-design-system/commit/8f84c5b67afe9cbe01b2a44a8f92a9a554e1036a)]
|
|
@@ -1275,6 +1319,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1275
1319
|
|
|
1276
1320
|
#### :nail_care: Enhancements
|
|
1277
1321
|
|
|
1322
|
+
- change(jenkins): added yarn policy for storybook building [ichim-david - [`3d1b844`](https://github.com/eea/volto-eea-design-system/commit/3d1b844efeea40b99c00c9aa97089e0a0be58a57)]
|
|
1278
1323
|
- change(docusaurus): typography updates [ichim-david - [`60a93a4`](https://github.com/eea/volto-eea-design-system/commit/60a93a4aece4e478ae13c2dfe697fd3703aa178a)]
|
|
1279
1324
|
- change(accordion): allow customization of accordion title with css variables [David Ichim - [`15e7d27`](https://github.com/eea/volto-eea-design-system/commit/15e7d27f02c640df582f51a51ef36e645723f842)]
|
|
1280
1325
|
- change(content-box): added css variables that will set text color and background for children [David Ichim - [`86cac53`](https://github.com/eea/volto-eea-design-system/commit/86cac531cc94386b6022e1be80dba826b39f2443)]
|
|
@@ -1309,6 +1354,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1309
1354
|
#### :hammer_and_wrench: Others
|
|
1310
1355
|
|
|
1311
1356
|
- Merge pull request #243 from eea/develop [ichim-david - [`576564c`](https://github.com/eea/volto-eea-design-system/commit/576564ce395ee6ac9e74bcb19d5c4f0b4cd3c33b)]
|
|
1357
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`4a5be6e`](https://github.com/eea/volto-eea-design-system/commit/4a5be6eec78dae230626e61ea2c77e7f3c62510d)]
|
|
1312
1358
|
- Back to dev [Alin Voinea - [`b251255`](https://github.com/eea/volto-eea-design-system/commit/b251255a7ed14d8290717726d86eaf54b87aa2d4)]
|
|
1313
1359
|
### [0.9.0](https://github.com/eea/volto-eea-design-system/compare/0.8.1...0.9.0) - 19 September 2022
|
|
1314
1360
|
|
|
@@ -2064,6 +2110,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2064
2110
|
#### :hammer_and_wrench: Others
|
|
2065
2111
|
|
|
2066
2112
|
- prettier changes [David Ichim - [`134da52`](https://github.com/eea/volto-eea-design-system/commit/134da52549b9d5eac5a12b7ad3005073500ac2c4)]
|
|
2113
|
+
- [JENKINSFILE] remove debug, add error per stage [valentinab25 - [`903eecd`](https://github.com/eea/volto-eea-design-system/commit/903eecdb6bcbb8d73cff5e447d80c85e2a2c906d)]
|
|
2114
|
+
- [JENKINSFILE] mention comment author in comment [valentinab25 - [`39a26aa`](https://github.com/eea/volto-eea-design-system/commit/39a26aa1ff0f35e93e8df9f442c29c5ab79ff493)]
|
|
2115
|
+
- [JENKINSFILE] format PR comments [valentinab25 - [`739438c`](https://github.com/eea/volto-eea-design-system/commit/739438c64950c745d630d1998314a2bed595b23a)]
|
|
2116
|
+
- [JENKINSFILE] Add failure comment, no jenkins fail [valentinab25 - [`c325bf1`](https://github.com/eea/volto-eea-design-system/commit/c325bf14f3fb0da150f2a56cda0a9f03d8d8a628)]
|
|
2067
2117
|
### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3) - 29 April 2022
|
|
2068
2118
|
|
|
2069
2119
|
#### :rocket: New Features
|
|
@@ -2488,6 +2538,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2488
2538
|
- set profile section overflow to auto [nileshgulia1 - [`71ab47f`](https://github.com/eea/volto-eea-design-system/commit/71ab47f89a433233c14b394c3824e607dd18a393)]
|
|
2489
2539
|
- remove segment custom width [nileshgulia1 - [`1d3ea40`](https://github.com/eea/volto-eea-design-system/commit/1d3ea40f98bbdc1eab95b4da739a659b5e29ec16)]
|
|
2490
2540
|
- fix profile section css overflow [nileshgulia1 - [`db5126f`](https://github.com/eea/volto-eea-design-system/commit/db5126fc902e191d1e18fb7e4c54877c8d8786e6)]
|
|
2541
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`647a6e3`](https://github.com/eea/volto-eea-design-system/commit/647a6e3e2093f2c4884c356eb148453551c8f33f)]
|
|
2491
2542
|
- fix warning related to proptype [nileshgulia1 - [`946c6c6`](https://github.com/eea/volto-eea-design-system/commit/946c6c6bc9dece0985ae4b9f9cad6ece2be0ff2c)]
|
|
2492
2543
|
- removed override already present in card.less [ichim-david - [`50d2ab2`](https://github.com/eea/volto-eea-design-system/commit/50d2ab26f85c8f409da02ec128cc1df34848ca69)]
|
|
2493
2544
|
- update [Miu Razvan - [`bbcab87`](https://github.com/eea/volto-eea-design-system/commit/bbcab87ef4c8475f347f0daf4ab7e428e69c2316)]
|
|
@@ -2574,6 +2625,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2574
2625
|
- remove segment custom width [nileshgulia1 - [`4a60d84`](https://github.com/eea/volto-eea-design-system/commit/4a60d84d5fe76578b7760aa1dad6eef9a20916a7)]
|
|
2575
2626
|
- Reformat header.less [Tiberiu Ichim - [`1f99dfc`](https://github.com/eea/volto-eea-design-system/commit/1f99dfc82c165304ca5600ce5138c1233615ab69)]
|
|
2576
2627
|
- fix profile section css overflow [nileshgulia1 - [`8fd2654`](https://github.com/eea/volto-eea-design-system/commit/8fd265413149f1b5e033dffa0fbcb5ef5ecad15f)]
|
|
2628
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6051724`](https://github.com/eea/volto-eea-design-system/commit/6051724437a38675e659c797bb5586ef81286ec0)]
|
|
2577
2629
|
- fix warning related to proptype [nileshgulia1 - [`824b9be`](https://github.com/eea/volto-eea-design-system/commit/824b9beff77aae139882cd50a1d670a02ec6f723)]
|
|
2578
2630
|
- refactor breadcrumbs component, make it functional and customizable [nileshgulia1 - [`4ec374e`](https://github.com/eea/volto-eea-design-system/commit/4ec374e20565eb0a5aed0ff67a02cd6f77eba1f0)]
|
|
2579
2631
|
- removed override already present in card.less [ichim-david - [`93c4e5a`](https://github.com/eea/volto-eea-design-system/commit/93c4e5aac9cc85ff2cc6c04180f6655d5f5616dc)]
|
|
@@ -3142,6 +3194,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
3142
3194
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`3af46d2`](https://github.com/eea/volto-eea-design-system/commit/3af46d2b14fa0b1ef44736f25b0f9ac93b23d18d)]
|
|
3143
3195
|
- Refs #140454 updated eea-design-system readme with extra info on package contents [David Ichim - [`d2efc3d`](https://github.com/eea/volto-eea-design-system/commit/d2efc3ddae7b91efc82cf3bce8fb8e42d696a780)]
|
|
3144
3196
|
- Refs #140454 add h1 to the list of elements that are max 800px and centered [David Ichim - [`7d3c30f`](https://github.com/eea/volto-eea-design-system/commit/7d3c30f409aa4cb43810839f8960589456cc1b2e)]
|
|
3197
|
+
- Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`8d657d0`](https://github.com/eea/volto-eea-design-system/commit/8d657d056cde5163cfe90ac66bc973f55d82e5e9)]
|
|
3145
3198
|
### [0.1.0](https://github.com/eea/volto-eea-design-system/compare/0.0.1...0.1.0) - 17 November 2021
|
|
3146
3199
|
|
|
3147
3200
|
#### :hammer_and_wrench: Others
|
package/cypress.config.js
CHANGED
|
@@ -2,12 +2,12 @@ const { defineConfig } = require('cypress');
|
|
|
2
2
|
|
|
3
3
|
module.exports = defineConfig({
|
|
4
4
|
viewportWidth: 1280,
|
|
5
|
-
defaultCommandTimeout:
|
|
5
|
+
defaultCommandTimeout: 8888,
|
|
6
6
|
chromeWebSecurity: false,
|
|
7
7
|
reporter: 'junit',
|
|
8
|
-
video:
|
|
8
|
+
video: false,
|
|
9
9
|
retries: {
|
|
10
|
-
runMode:
|
|
10
|
+
runMode: 2,
|
|
11
11
|
openMode: 0,
|
|
12
12
|
},
|
|
13
13
|
reporterOptions: {
|
package/package.json
CHANGED
package/src/ui/Banner/Banner.jsx
CHANGED
|
@@ -3,6 +3,7 @@ import { Container, Icon, Button, Grid } from 'semantic-ui-react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
5
5
|
import { formatDate } from '@plone/volto/helpers/Utils/Date';
|
|
6
|
+
import cx from 'classnames';
|
|
6
7
|
import config from '@plone/volto/registry';
|
|
7
8
|
|
|
8
9
|
Banner.propTypes = {
|
|
@@ -44,7 +45,7 @@ export const sharePage = (url, platform) => {
|
|
|
44
45
|
link.click();
|
|
45
46
|
};
|
|
46
47
|
|
|
47
|
-
function Banner({ image, metadata, properties, children, ...rest }) {
|
|
48
|
+
function Banner({ image, metadata, properties, children, styles, ...rest }) {
|
|
48
49
|
if (image) {
|
|
49
50
|
//extract Lead image from page content.
|
|
50
51
|
const content = metadata || properties;
|
|
@@ -52,7 +53,7 @@ function Banner({ image, metadata, properties, children, ...rest }) {
|
|
|
52
53
|
return (
|
|
53
54
|
<div className="eea banner">
|
|
54
55
|
<div
|
|
55
|
-
className={imageUrl ? 'image' : ''}
|
|
56
|
+
className={cx(imageUrl ? 'image' : '', styles?.bg)}
|
|
56
57
|
style={imageUrl ? { backgroundImage: `url(${imageUrl})` } : {}}
|
|
57
58
|
>
|
|
58
59
|
<div className="gradient">
|
|
@@ -72,7 +73,7 @@ function Banner({ image, metadata, properties, children, ...rest }) {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
Banner.Action = React.forwardRef(function (
|
|
75
|
-
{
|
|
76
|
+
{ title, titleClass, icon, onClick, className, color, ...rest },
|
|
76
77
|
ref,
|
|
77
78
|
) {
|
|
78
79
|
return (
|
|
@@ -85,8 +86,8 @@ Banner.Action = React.forwardRef(function (
|
|
|
85
86
|
onClick={onClick}
|
|
86
87
|
{...rest}
|
|
87
88
|
>
|
|
88
|
-
<Icon className={icon} color={color}></Icon>
|
|
89
|
-
<span className={titleClass || 'mobile
|
|
89
|
+
<Icon className={icon} color={color} title={title}></Icon>
|
|
90
|
+
<span className={titleClass || 'mobile-sr-only'}>{title}</span>
|
|
90
91
|
</Button>
|
|
91
92
|
</div>
|
|
92
93
|
);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Card, Image, Grid, Container, Icon, Button } from 'semantic-ui-react';
|
|
3
3
|
import Slider from 'react-slick';
|
|
4
|
+
import TagList from '../TagList/TagList';
|
|
5
|
+
import Tag from '../Tag/Tag';
|
|
4
6
|
|
|
5
7
|
import 'slick-carousel/slick/slick.css';
|
|
6
8
|
import 'slick-carousel/slick/slick-theme.css';
|
|
@@ -8,89 +10,89 @@ import 'slick-carousel/slick/slick-theme.css';
|
|
|
8
10
|
const tabletBreakpoint = 835;
|
|
9
11
|
const mobileBreakpoint = 480;
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
13
|
+
// Content for all cards
|
|
14
|
+
let cardData = {
|
|
15
|
+
cardContent: {
|
|
16
|
+
title: [
|
|
17
|
+
'Economy and resources',
|
|
18
|
+
'Health',
|
|
19
|
+
'Nature',
|
|
20
|
+
'Climate',
|
|
21
|
+
"State of Europe's environment",
|
|
22
|
+
],
|
|
23
|
+
imgUrl: [
|
|
24
|
+
'https://www.eea.europa.eu/publications/eea-eionet-strategy-2021-2030/image_mini',
|
|
25
|
+
'https://www.eea.europa.eu/en/topics/at-a-glance/health/@@images/image/preview',
|
|
26
|
+
'https://www.eea.europa.eu/en/topics/at-a-glance/nature/@@images/image/preview',
|
|
27
|
+
'https://www.eea.europa.eu/en/topics/at-a-glance/climate/@@images/image/preview',
|
|
28
|
+
'https://www.eea.europa.eu/en/topics/at-a-glance/state-of-europes-environment/@@images/image/preview',
|
|
29
|
+
],
|
|
30
|
+
description: [
|
|
31
|
+
'The economy plays a vital role in our lives by providing access to employment, ' +
|
|
32
|
+
'products and services that help us thrive. Unfortunately, with its key sectors like agriculture,' +
|
|
33
|
+
' energy and transport, our economy also harms the environment and causes climate change. ' +
|
|
34
|
+
'Europe needs a circular, carbon-neutral and zero-pollution economy. ',
|
|
35
|
+
'By improving air, water, and soil quality and limiting pollution released to nature, ' +
|
|
36
|
+
'the EU has significantly contributed to enhancing human health in the last five ' +
|
|
37
|
+
'decades. Yet, many vulnerable groups continue to be impacted by environmental ' +
|
|
38
|
+
'degradation and climate change. Further improvements can help keep Europeans ' +
|
|
39
|
+
'healthier and better equipped to cope with climate change impacts.',
|
|
40
|
+
'Europe’s nature is filled with forests, mountains, vast plains, long rivers, deep blue seas and ' +
|
|
41
|
+
'refreshing lakes. But it also is under threat. Unsustainable farming and forestry practices, ' +
|
|
42
|
+
'pollution, climate change and invasive species are stressing and destabilising all natural ' +
|
|
43
|
+
'systems in Europe. The result is a biodiversity crisis. The EU is taking steps to protect and restore nature.',
|
|
44
|
+
'Climate change affects us all and is accelerating. Its impacts will become even more severe if ' +
|
|
45
|
+
'the increase in global temperature is not kept below 1.5°C. The EU and its Member States are ' +
|
|
46
|
+
'taking important steps to rapidly reduce greenhouse gas emissions and adapt to climate change.',
|
|
47
|
+
'EU environment and climate policies have delivered substantial benefits over recent ' +
|
|
48
|
+
'decades, such as cleaner air and water. Nevertheless, Europe, as well as the rest ' +
|
|
49
|
+
'of the globe, is facing environmental challenges of unprecedented scale and urgency.',
|
|
50
|
+
],
|
|
51
|
+
metaRight: [
|
|
52
|
+
'20/05/2023',
|
|
53
|
+
'30/04/2023',
|
|
54
|
+
'10/04/2023',
|
|
55
|
+
'02/04/2023',
|
|
56
|
+
'16/03/2023',
|
|
57
|
+
],
|
|
58
|
+
eventDate: [
|
|
59
|
+
'20/05/2023',
|
|
60
|
+
'30/04/2023',
|
|
61
|
+
'10/04/2023',
|
|
62
|
+
'02/04/2023',
|
|
63
|
+
'16/03/2023',
|
|
64
|
+
],
|
|
65
|
+
tags: [
|
|
66
|
+
{ category: 'tag 1', href: '#' },
|
|
67
|
+
{ category: 'tag 2', href: '#' },
|
|
68
|
+
{ category: 'bigger tag', href: '#' },
|
|
69
|
+
{ category: 'tag 3', href: '#' },
|
|
70
|
+
{ category: 'tag 4', href: '#' },
|
|
71
|
+
],
|
|
72
|
+
},
|
|
29
73
|
};
|
|
30
74
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
'Article',
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
'/#',
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
'Article',
|
|
53
|
-
'30/06/2023',
|
|
54
|
-
'03/08/2023',
|
|
55
|
-
'/#',
|
|
56
|
-
],
|
|
57
|
-
[
|
|
58
|
-
'Nature',
|
|
59
|
-
'https://www.eea.europa.eu/en/topics/at-a-glance/nature/@@images/image/preview',
|
|
60
|
-
"Europe's nature is filled with forests, mountains, vast plains, long rivers, deep blue seas and " +
|
|
61
|
-
'refreshing lakes. But it also is under threat. Unsustainable farming and forestry practices, ' +
|
|
62
|
-
'pollution, climate change and invasive species are stressing and destabilising all natural ' +
|
|
63
|
-
'systems in Europe. The result is a biodiversity crisis. The EU is taking steps to protect and restore nature.',
|
|
64
|
-
'Article',
|
|
65
|
-
'10/04/2022',
|
|
66
|
-
'18/05/2023',
|
|
67
|
-
'/#',
|
|
68
|
-
],
|
|
69
|
-
[
|
|
70
|
-
'Climate',
|
|
71
|
-
'https://www.eea.europa.eu/en/topics/at-a-glance/climate/@@images/image/preview',
|
|
72
|
-
'Climate change affects us all and is accelerating. Its impacts will become even more severe if ' +
|
|
73
|
-
'the increase in global temperature is not kept below 1.5°C. The EU and its Member States are ' +
|
|
74
|
-
'taking important steps to rapidly reduce greenhouse gas emissions and adapt to climate change.',
|
|
75
|
-
'Article',
|
|
76
|
-
'20/06/2022',
|
|
77
|
-
'15/03/2024',
|
|
78
|
-
'/#',
|
|
79
|
-
],
|
|
80
|
-
[
|
|
81
|
-
"State of Europe's environment",
|
|
82
|
-
'https://www.eea.europa.eu/en/topics/at-a-glance/state-of-europes-environment/@@images/image/preview',
|
|
83
|
-
'EU environment and climate policies have delivered substantial benefits over recent ' +
|
|
84
|
-
'decades, such as cleaner air and water. Nevertheless, Europe, as well as the rest ' +
|
|
85
|
-
'of the globe, is facing environmental challenges of unprecedented scale and urgency.',
|
|
86
|
-
'Article',
|
|
87
|
-
'16/03/2022',
|
|
88
|
-
'13/01/2024',
|
|
89
|
-
'/#',
|
|
90
|
-
],
|
|
91
|
-
];
|
|
92
|
-
|
|
93
|
-
const cardModels = cardData.map((card) => createCardModel(...card));
|
|
75
|
+
// Fill the cardModel array that stories use
|
|
76
|
+
let cardModels = [];
|
|
77
|
+
let tempCardContent = {};
|
|
78
|
+
for (var i = 0; i <= cardData.cardContent.title.length; i++) {
|
|
79
|
+
tempCardContent = {
|
|
80
|
+
title: cardData.cardContent.title[i],
|
|
81
|
+
imgUrl: cardData.cardContent.imgUrl[i],
|
|
82
|
+
description: cardData.cardContent.description[i],
|
|
83
|
+
meta: 'Article',
|
|
84
|
+
metaRight: cardData.cardContent.metaRight[i],
|
|
85
|
+
eventDate: cardData.cardContent.eventDate[i],
|
|
86
|
+
href: '/#',
|
|
87
|
+
tags: [],
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// Fill cards with random amount of tags
|
|
91
|
+
for (var j = 0; j < Math.floor(Math.random() * 4 + 1); j++) {
|
|
92
|
+
tempCardContent.tags.push(cardData.cardContent.tags[j]);
|
|
93
|
+
}
|
|
94
|
+
cardModels.push(tempCardContent);
|
|
95
|
+
}
|
|
94
96
|
|
|
95
97
|
export default {
|
|
96
98
|
title: 'Components/Card/Default',
|
|
@@ -203,6 +205,28 @@ export default {
|
|
|
203
205
|
defaultValue: { summary: ' "" ' },
|
|
204
206
|
},
|
|
205
207
|
},
|
|
208
|
+
hasTags: {
|
|
209
|
+
name: 'Tags',
|
|
210
|
+
table: {
|
|
211
|
+
defaultValue: { summary: 'false' },
|
|
212
|
+
type: { summary: 'boolean' },
|
|
213
|
+
category: 'Tags',
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
direction: {
|
|
217
|
+
name: 'Tags direction',
|
|
218
|
+
control: { type: 'select' },
|
|
219
|
+
options: ['right', 'left'],
|
|
220
|
+
table: {
|
|
221
|
+
type: {
|
|
222
|
+
summary: 'string',
|
|
223
|
+
},
|
|
224
|
+
defaultValue: {
|
|
225
|
+
summary: 'left',
|
|
226
|
+
},
|
|
227
|
+
category: 'Tags',
|
|
228
|
+
},
|
|
229
|
+
},
|
|
206
230
|
},
|
|
207
231
|
};
|
|
208
232
|
|
|
@@ -242,6 +266,8 @@ const CardTemplate = ({
|
|
|
242
266
|
eventDate,
|
|
243
267
|
fluid,
|
|
244
268
|
card,
|
|
269
|
+
hasTags,
|
|
270
|
+
direction,
|
|
245
271
|
}) => (
|
|
246
272
|
<Card
|
|
247
273
|
fluid={fluid}
|
|
@@ -288,6 +314,19 @@ const CardTemplate = ({
|
|
|
288
314
|
|
|
289
315
|
{/* Description */}
|
|
290
316
|
<Card.Description>{card.description}</Card.Description>
|
|
317
|
+
{hasTags && (
|
|
318
|
+
<div className="card-tags">
|
|
319
|
+
<TagList className={direction}>
|
|
320
|
+
<TagList.Content>
|
|
321
|
+
{card.tags.map((tag, index) => [
|
|
322
|
+
<Tag href={tag.href} key={index}>
|
|
323
|
+
{tag.category}
|
|
324
|
+
</Tag>,
|
|
325
|
+
])}
|
|
326
|
+
</TagList.Content>
|
|
327
|
+
</TagList>
|
|
328
|
+
</div>
|
|
329
|
+
)}
|
|
291
330
|
</Card.Content>
|
|
292
331
|
|
|
293
332
|
{/* Additional links */}
|
|
@@ -322,6 +361,8 @@ Default.args = {
|
|
|
322
361
|
numberOfCards: 1,
|
|
323
362
|
fluid: false,
|
|
324
363
|
cards: [...cardModels],
|
|
364
|
+
hasTags: false,
|
|
365
|
+
direction: 'left',
|
|
325
366
|
};
|
|
326
367
|
const GridTemplate = (args) => (
|
|
327
368
|
<Container>
|
|
@@ -349,6 +390,8 @@ CardGrid.args = {
|
|
|
349
390
|
fluid: true,
|
|
350
391
|
numberOfCards: 5,
|
|
351
392
|
cards: [...cardModels],
|
|
393
|
+
hasTags: false,
|
|
394
|
+
direction: 'left',
|
|
352
395
|
};
|
|
353
396
|
|
|
354
397
|
const ImageCard = ({
|
|
@@ -394,6 +437,8 @@ ImageGrid.args = {
|
|
|
394
437
|
fluid: true,
|
|
395
438
|
cards: [...cardModels],
|
|
396
439
|
numberOfCards: 5,
|
|
440
|
+
hasTags: false,
|
|
441
|
+
direction: 'left',
|
|
397
442
|
};
|
|
398
443
|
|
|
399
444
|
ImageGrid.argTypes = {
|
|
@@ -443,6 +488,8 @@ FluidGrid.args = {
|
|
|
443
488
|
eventDate: false,
|
|
444
489
|
fluid: true,
|
|
445
490
|
cards: [...cardModels],
|
|
491
|
+
hasTags: false,
|
|
492
|
+
direction: 'left',
|
|
446
493
|
};
|
|
447
494
|
const PrevArrow = (props) => {
|
|
448
495
|
const { onClick } = props;
|
|
@@ -562,6 +609,8 @@ CarouselCards.args = {
|
|
|
562
609
|
},
|
|
563
610
|
numberOfCards: 5,
|
|
564
611
|
cards: [...cardModels],
|
|
612
|
+
hasTags: false,
|
|
613
|
+
direction: 'left',
|
|
565
614
|
};
|
|
566
615
|
CarouselCards.argTypes = {
|
|
567
616
|
settings: {
|
|
@@ -587,6 +636,8 @@ const TeaserCard = ({
|
|
|
587
636
|
maxLines,
|
|
588
637
|
eventDate,
|
|
589
638
|
card,
|
|
639
|
+
hasTags,
|
|
640
|
+
direction,
|
|
590
641
|
}) => (
|
|
591
642
|
<div className="column grid-block-teaser">
|
|
592
643
|
<div
|
|
@@ -625,6 +676,19 @@ const TeaserCard = ({
|
|
|
625
676
|
</div>
|
|
626
677
|
{eventDate && <EventDate {...card} />}
|
|
627
678
|
<Card.Description>{card.description}</Card.Description>
|
|
679
|
+
{hasTags && (
|
|
680
|
+
<div className="card-tags">
|
|
681
|
+
<TagList className={direction}>
|
|
682
|
+
<TagList.Content>
|
|
683
|
+
{card.tags.map((tag, index) => [
|
|
684
|
+
<Tag href={tag.href} key={index}>
|
|
685
|
+
{tag.category}
|
|
686
|
+
</Tag>,
|
|
687
|
+
])}
|
|
688
|
+
</TagList.Content>
|
|
689
|
+
</TagList>
|
|
690
|
+
</div>
|
|
691
|
+
)}
|
|
628
692
|
</div>
|
|
629
693
|
)}
|
|
630
694
|
</div>
|
|
@@ -669,4 +733,6 @@ TeaserCardGrid.args = {
|
|
|
669
733
|
fluid: true,
|
|
670
734
|
numberOfCards: 3,
|
|
671
735
|
cards: [...cardModels],
|
|
736
|
+
hasTags: false,
|
|
737
|
+
direction: 'left',
|
|
672
738
|
};
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
TeaserCardGrid,
|
|
6
6
|
CarouselCards,
|
|
7
7
|
FluidGrid,
|
|
8
|
-
CardGrid,
|
|
9
8
|
ImageGrid,
|
|
9
|
+
CardGrid,
|
|
10
10
|
Default,
|
|
11
11
|
} from './Card.stories';
|
|
12
12
|
|
|
@@ -113,6 +113,16 @@ describe('CarouselCards component', () => {
|
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
+
describe('ImageGrid component', () => {
|
|
117
|
+
it('renders the image grid with correct number of cards', () => {
|
|
118
|
+
const { container } = render(<ImageGrid {...ImageGrid.args} />);
|
|
119
|
+
const imageGridCards = container.querySelectorAll(
|
|
120
|
+
'.imageCard-items .ui.card a.image',
|
|
121
|
+
);
|
|
122
|
+
expect(imageGridCards.length).toBe(5);
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
|
|
116
126
|
describe('FluidGrid component', () => {
|
|
117
127
|
it('renders correctly', () => {
|
|
118
128
|
const { container } = render(<FluidGrid {...FluidGrid.args} />);
|
package/src/ui/Footer/Footer.jsx
CHANGED
|
@@ -18,7 +18,7 @@ import Description from '@eeacms/volto-eea-design-system/ui/Footer/Description';
|
|
|
18
18
|
/**
|
|
19
19
|
* Component to display the footer.
|
|
20
20
|
* @function Footer
|
|
21
|
-
* @param {Object}
|
|
21
|
+
* @param {Object} props object
|
|
22
22
|
* @returns {string} Markup of the component
|
|
23
23
|
*/
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ const Footer = (props) => {
|
|
|
28
28
|
const bgImgRef = React.useRef();
|
|
29
29
|
const onScreen = useFirstVisited(bgImgRef);
|
|
30
30
|
return (
|
|
31
|
-
<footer id={'footer'}>
|
|
31
|
+
<footer id={'footer'} aria-label={'Footer'}>
|
|
32
32
|
<div
|
|
33
33
|
ref={bgImgRef}
|
|
34
34
|
className={onScreen ? 'footer-wrapper' : 'footer-wrapper-nobg'}
|