design-comuni-plone-theme 8.7.6 → 8.7.7

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
@@ -1,3 +1,11 @@
1
+ ## [8.7.7](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.7.6...v8.7.7) (2023-10-12)
2
+
3
+
4
+ ### Maintenance
5
+
6
+ * preparing release 8.7.7 ([1136269](https://github.com/redturtle/design-comuni-plone-theme/commit/1136269c2afd1de887d44c96edbe1fffcbdb990e))
7
+ * updated twitter icon ([#361](https://github.com/redturtle/design-comuni-plone-theme/issues/361)) ([ce75b74](https://github.com/redturtle/design-comuni-plone-theme/commit/ce75b74e5d2b7eccdb56456f7b474184483d3035))
8
+
1
9
 
2
10
 
3
11
  ## [8.7.6](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.7.5...v8.7.6) (2023-10-09)
package/RELEASE.md CHANGED
@@ -30,7 +30,11 @@
30
30
  - ...
31
31
  -->
32
32
 
33
- ## Versione X.X.X (06/10/2023)
33
+ ## Versione 8.7.7 (12/10/2023)
34
+
35
+ ### Migliorie
36
+
37
+ - Aggiornata nuova icona di Twitter
34
38
 
35
39
  ### Fix
36
40
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "8.7.6",
5
+ "version": "8.7.7",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
package/publiccode.yml CHANGED
@@ -227,9 +227,9 @@ maintenance:
227
227
  name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
228
228
  platforms:
229
229
  - web
230
- releaseDate: '2023-10-09'
230
+ releaseDate: '2023-10-12'
231
231
  softwareType: standalone/web
232
- softwareVersion: 8.7.6
232
+ softwareVersion: 8.7.7
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -7,6 +7,7 @@ import classNames from 'classnames';
7
7
 
8
8
  import DesignIcon from './DesignIcon';
9
9
  import TelegramSVG from './svg/TelegramSVG';
10
+ import XTwitterSVG from './svg/XTwitterSVG';
10
11
  import { FontAwesomeIcon } from 'design-comuni-plone-theme/components/ItaliaTheme';
11
12
 
12
13
  const Icon = (props) => {
@@ -25,10 +26,13 @@ const Icon = (props) => {
25
26
 
26
27
  const parts = icon.split(' ');
27
28
 
28
- if (icon.indexOf('it-') === 0) {
29
+ // TO DO: rimuovere le condizioni dell'icona di twitter quando verrà aggiornato Bootstrap Italia
30
+ if (icon.indexOf('it-') === 0 && icon !== 'it-twitter') {
29
31
  return <DesignIcon {...props} className={classes} {...rest} />;
30
32
  } else if (icon === 'telegram') {
31
33
  return <TelegramSVG className={classes} {...rest} />;
34
+ } else if (icon === 'it-twitter') {
35
+ return <XTwitterSVG className={classes} {...rest} />;
32
36
  } else if (parts.length > 1) {
33
37
  return (
34
38
  <FontAwesomeIcon icon={parts} className={`fal ${classes}`} {...rest} />
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+
3
+ const XTwitterSVG = (props) => (
4
+ <svg
5
+ aria-hidden="true"
6
+ focusable="false"
7
+ data-prefix="fab"
8
+ data-icon="x-twitter"
9
+ {...props}
10
+ role="img"
11
+ xmlns="http://www.w3.org/2000/svg"
12
+ viewBox="0 0 496 512"
13
+ >
14
+ <path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z" />
15
+ </svg>
16
+ );
17
+
18
+ export default XTwitterSVG;
@@ -3,6 +3,7 @@
3
3
  .btn.dropdown-toggle {
4
4
  text-decoration: underline;
5
5
  }
6
+
6
7
  .link-list-wrapper {
7
8
  ul {
8
9
  li {
@@ -10,7 +11,10 @@
10
11
  button.btn-link {
11
12
  display: flex;
12
13
  align-items: center;
14
+
13
15
  .icon {
16
+ height: 28px;
17
+ width: 28px;
14
18
  margin-right: 0.5em;
15
19
  }
16
20
  }