@eeacms/volto-eea-design-system 1.22.3 → 1.22.5

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 CHANGED
@@ -4,6 +4,21 @@ 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.22.5](https://github.com/eea/volto-eea-design-system/compare/1.22.4...1.22.5) - 17 January 2024
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix(a11y): alt text in FooterSites component [David Ichim - [`eff3fa0`](https://github.com/eea/volto-eea-design-system/commit/eff3fa0522b277a25a00e53c21bd4e838e677856)]
12
+ - fix(a11y): Refactor lazy loading of images in Footer and SubFooter components [David Ichim - [`2513a82`](https://github.com/eea/volto-eea-design-system/commit/2513a82d69f7c76bd6231fc709328a4e3680e6b4)]
13
+ - fix(a11y): dropdown Certain ARIA roles must contain particular children error [David Ichim - [`8311bab`](https://github.com/eea/volto-eea-design-system/commit/8311bab99d2696cb52eeb9568aa38f2744477296)]
14
+ - fix: Make inpage-navigation not visibile on edit sidebar - refs #261560 [dobri1408 - [`e124080`](https://github.com/eea/volto-eea-design-system/commit/e124080b76c1dd2a2d63cf4fe0e6dd6f259bad8a)]
15
+ - fix(tabs): inside content boxes which apply theme and text color for children [David Ichim - [`d3902de`](https://github.com/eea/volto-eea-design-system/commit/d3902deff42cc62459888a5085b229e746fc8d12)]
16
+
17
+ ### [1.22.4](https://github.com/eea/volto-eea-design-system/compare/1.22.3...1.22.4) - 5 December 2023
18
+
19
+ #### :hammer_and_wrench: Others
20
+
21
+ - Update Twitter logo in Share to section. [Ghiță Bizău - [`d86fc21`](https://github.com/eea/volto-eea-design-system/commit/d86fc2144d7ae6b4a6cb5337820e9b13040fd455)]
7
22
  ### [1.22.3](https://github.com/eea/volto-eea-design-system/compare/1.22.2...1.22.3) - 4 December 2023
8
23
 
9
24
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "1.22.3",
3
+ "version": "1.22.5",
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,7 +107,7 @@ const Template = (args) => {
107
107
  titleClass={'hiddenStructure'}
108
108
  />
109
109
  <Banner.Action
110
- icon="ri-twitter-fill"
110
+ icon="ri-twitter-x-line"
111
111
  title={'Share page to Twitter'}
112
112
  titleClass={'hiddenStructure'}
113
113
  />
@@ -6,12 +6,6 @@ import { Default } from './Footer.stories';
6
6
  import Footer from './Footer';
7
7
  import '@testing-library/jest-dom/extend-expect';
8
8
 
9
- jest.mock('react-lazy-load-image-component', () => {
10
- return {
11
- LazyLoadComponent: ({ children }) => <>{children}</>,
12
- };
13
- });
14
-
15
9
  describe('Default', () => {
16
10
  let history;
17
11
  let observe;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { Grid, Image } from 'semantic-ui-react';
3
- import { LazyLoadComponent } from 'react-lazy-load-image-component';
4
3
 
5
4
  import PropTypes from 'prop-types';
6
5
 
@@ -13,22 +12,20 @@ const Sites = (props) => {
13
12
  column.push(
14
13
  <Grid.Column className="logo" key={i}>
15
14
  <a className="logo" href={item.url} aria-label={item.alt}>
16
- <LazyLoadComponent>
17
- <Image
18
- className={item.className}
19
- src={item.src}
20
- alt={item.alt}
21
- ></Image>
22
- </LazyLoadComponent>
15
+ <Image
16
+ className={item.className}
17
+ src={item.src}
18
+ alt={''}
19
+ loading="lazy"
20
+ ></Image>
23
21
  </a>
24
- <a className="logo" href={nextItem.url} aria-label={item.alt}>
25
- <LazyLoadComponent>
26
- <Image
27
- className={nextItem.className}
28
- src={nextItem.src}
29
- alt={nextItem.alt}
30
- ></Image>
31
- </LazyLoadComponent>
22
+ <a className="logo" href={nextItem.url} aria-label={nextItem.alt}>
23
+ <Image
24
+ className={nextItem.className}
25
+ src={nextItem.src}
26
+ alt={''}
27
+ loading="lazy"
28
+ ></Image>
32
29
  </a>
33
30
  </Grid.Column>,
34
31
  );
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import Footer from './Footer';
3
3
 
4
4
  import { Grid, Image } from 'semantic-ui-react';
5
- import { LazyLoadComponent } from 'react-lazy-load-image-component';
6
5
 
7
6
  const SubFooter = (props) => {
8
7
  if (props.children) {
@@ -24,9 +23,11 @@ const SubFooter = (props) => {
24
23
  <div className="item">
25
24
  <div className={manager.className}>
26
25
  <a href={manager.url}>
27
- <LazyLoadComponent>
28
- <Image src={manager.src} alt={manager.alt}></Image>
29
- </LazyLoadComponent>
26
+ <Image
27
+ src={manager.src}
28
+ alt={manager.alt}
29
+ loading="lazy"
30
+ ></Image>
30
31
  </a>
31
32
  </div>
32
33
  </div>
@@ -56,9 +57,11 @@ const SubFooter = (props) => {
56
57
  <div className="item">
57
58
  <div className={manager.className}>
58
59
  <a href={manager.url}>
59
- <LazyLoadComponent>
60
- <Image src={manager.src} alt={manager.alt}></Image>
61
- </LazyLoadComponent>
60
+ <Image
61
+ src={manager.src}
62
+ alt={manager.alt}
63
+ loading="lazy"
64
+ ></Image>
62
65
  </a>
63
66
  </div>
64
67
  </div>
@@ -5,6 +5,7 @@
5
5
  .ui.breadcrumb {
6
6
  display: flex;
7
7
  align-items: center;
8
+ line-height: @lineHeight;
8
9
 
9
10
  .home.icon {
10
11
  margin-right: 0;
@@ -21,17 +21,17 @@
21
21
  Icon
22
22
  *******************************/
23
23
 
24
- @font-face {
25
- font-display: swap;
26
- font-family: 'Icons';
27
- src: @fallbackSRC;
28
- src: @src;
29
- font-style: normal;
30
- font-weight: @normal;
31
- font-variant: normal;
32
- text-decoration: inherit;
33
- text-transform: none;
34
- }
24
+ //@font-face {
25
+ // font-display: swap;
26
+ // font-family: 'Icons';
27
+ // src: @fallbackSRC;
28
+ // src: @src;
29
+ // font-style: normal;
30
+ // font-weight: @normal;
31
+ // font-variant: normal;
32
+ // text-decoration: inherit;
33
+ // text-transform: none;
34
+ //}
35
35
 
36
36
  i.icon {
37
37
  display: inline-block;
@@ -42,7 +42,7 @@ i.icon {
42
42
  width: @width;
43
43
  height: @height;
44
44
 
45
- font-family: 'Icons';
45
+ //font-family: 'Icons';
46
46
  font-style: normal;
47
47
  font-weight: @normal;
48
48
  text-decoration: inherit;
@@ -258,7 +258,7 @@ p.ui.button {
258
258
 
259
259
  .ui.inverted.secondary.buttons .button:focus,
260
260
  .ui.inverted.secondary.button:focus,
261
- \.ui.inverted.secondary.buttons .button:focus-visible,
261
+ .ui.inverted.secondary.buttons .button:focus-visible,
262
262
  .ui.inverted.secondary.button:focus-visible {
263
263
  background-color: @secondaryColorFocus;
264
264
  }