@eeacms/volto-eea-design-system 1.36.3 → 1.36.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 +5 -1
- package/package.json +1 -1
- package/src/ui/Tag/Tag.jsx +13 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ 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.36.
|
|
7
|
+
### [1.36.4](https://github.com/eea/volto-eea-design-system/compare/1.36.3...1.36.4) - 14 March 2025
|
|
8
8
|
|
|
9
9
|
#### :bug: Bug Fixes
|
|
10
10
|
|
|
@@ -17,7 +17,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
17
17
|
|
|
18
18
|
#### :hammer_and_wrench: Others
|
|
19
19
|
|
|
20
|
+
- Fix with sed the issue from line 714 missing } [David Ichim - [`e4e10a0`](https://github.com/eea/volto-eea-design-system/commit/e4e10a0a8a82c1fa20dcff9fa8178a6a938a7fd5)]
|
|
21
|
+
- Fixed link for don't use more than six colors [David Ichim - [`f42c698`](https://github.com/eea/volto-eea-design-system/commit/f42c69895258291ef72c0299e348f5671b2c127b)]
|
|
20
22
|
- lint fix [David Ichim - [`5d4d60a`](https://github.com/eea/volto-eea-design-system/commit/5d4d60ac305b8694fec64a9cce625a1015e8486f)]
|
|
23
|
+
### [1.36.3](https://github.com/eea/volto-eea-design-system/compare/1.36.2...1.36.3) - 4 March 2025
|
|
24
|
+
|
|
21
25
|
### [1.36.2](https://github.com/eea/volto-eea-design-system/compare/1.36.1...1.36.2) - 18 December 2024
|
|
22
26
|
|
|
23
27
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
package/src/ui/Tag/Tag.jsx
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Icon } from 'semantic-ui-react';
|
|
3
|
+
import { ConditionalLink } from '@plone/volto/components';
|
|
4
|
+
import { getFieldURL } from '@plone/volto/helpers';
|
|
3
5
|
|
|
4
|
-
function Tag({
|
|
6
|
+
function Tag({ href, children }) {
|
|
5
7
|
return (
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
<div className={`tag ${href ? 'link' : ''}`}>
|
|
9
|
+
<ConditionalLink
|
|
10
|
+
condition={href}
|
|
11
|
+
to={href ? getFieldURL(href) : null}
|
|
12
|
+
openLinkInNewTab={false}
|
|
13
|
+
>
|
|
14
|
+
<Icon className={`icon`} name="hashtag" />
|
|
15
|
+
<span className="name">{children}</span>
|
|
16
|
+
</ConditionalLink>
|
|
17
|
+
</div>
|
|
10
18
|
);
|
|
11
19
|
}
|
|
12
20
|
|