design-comuni-plone-theme 10.4.2 → 10.4.3

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,5 +1,20 @@
1
1
 
2
2
 
3
+ ## [10.4.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v10.4.2...v10.4.3) (2023-11-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * 404 page now sends user to homepage instead of search ([#419](https://github.com/RedTurtle/design-comuni-plone-theme/issues/419)) ([4331b59](https://github.com/RedTurtle/design-comuni-plone-theme/commit/4331b5937dbcfad9fe6a22f3f8a0a53c1a17b838))
9
+ * a11y of feedback form ([#418](https://github.com/RedTurtle/design-comuni-plone-theme/issues/418)) ([52da0c7](https://github.com/RedTurtle/design-comuni-plone-theme/commit/52da0c73f67c8bb09b225e19a6535cd6a9613602))
10
+ * changed styles for BandiInEvidenceTemplate for tablet size ([#412](https://github.com/RedTurtle/design-comuni-plone-theme/issues/412)) ([fd7688a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/fd7688a80b6247243730ff01e55dd682ba2edbac))
11
+ * removed pager-link data-element from prev item button in Pagination ([#420](https://github.com/RedTurtle/design-comuni-plone-theme/issues/420)) ([5812546](https://github.com/RedTurtle/design-comuni-plone-theme/commit/58125465349699396b2719a79bf70a339f4ac7e6))
12
+
13
+
14
+ ### Documentation
15
+
16
+ * updated publiccode and release log ([33b267f](https://github.com/RedTurtle/design-comuni-plone-theme/commit/33b267f2f20d68b521a1452d300f7288f1d01fb1))
17
+
3
18
  ## [10.4.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v10.4.1...v10.4.2) (2023-11-23)
4
19
 
5
20
 
package/RELEASE.md CHANGED
@@ -41,6 +41,17 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 10.4.3 (28/11/2023)
45
+
46
+ ### Migliorie
47
+
48
+ - Ora nella pagina 404 "Questa pagina non esiste" viene suggerito il proseguimento della navigazione verso la homepage invece che verso la ricerca.
49
+
50
+ ### Fix
51
+
52
+ - Migliorata l'accessibilità del modulo di valutazione del sito che si trova in fondo ad ogni pagina.
53
+ - Il blocco Elenco con variazione Bandi viene visualizzato correttamente anche su tablet.
54
+
44
55
  ## Versione 10.4.2 (23/11/2023)
45
56
 
46
57
  ### Fix
@@ -2153,6 +2153,11 @@ msgstr ""
2153
2153
  msgid "hide_dates"
2154
2154
  msgstr ""
2155
2155
 
2156
+ #: helpers/customizationsI18n
2157
+ # defaultMessage: Home page
2158
+ msgid "homepage"
2159
+ msgstr ""
2160
+
2156
2161
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2157
2162
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2158
2163
  msgid "htmlFullWidth"
@@ -2138,6 +2138,11 @@ msgstr ""
2138
2138
  msgid "hide_dates"
2139
2139
  msgstr ""
2140
2140
 
2141
+ #: helpers/customizationsI18n
2142
+ # defaultMessage: Home page
2143
+ msgid "homepage"
2144
+ msgstr "Home page"
2145
+
2141
2146
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2142
2147
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2143
2148
  msgid "htmlFullWidth"
@@ -2147,6 +2147,11 @@ msgstr "Para esta plantilla el número de resultados por página debe ser 7. Com
2147
2147
  msgid "hide_dates"
2148
2148
  msgstr "Ocultar fechas"
2149
2149
 
2150
+ #: helpers/customizationsI18n
2151
+ # defaultMessage: Home page
2152
+ msgid "homepage"
2153
+ msgstr ""
2154
+
2150
2155
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2151
2156
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2152
2157
  msgid "htmlFullWidth"
@@ -2155,6 +2155,11 @@ msgstr ""
2155
2155
  msgid "hide_dates"
2156
2156
  msgstr ""
2157
2157
 
2158
+ #: helpers/customizationsI18n
2159
+ # defaultMessage: Home page
2160
+ msgid "homepage"
2161
+ msgstr ""
2162
+
2158
2163
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2159
2164
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2160
2165
  msgid "htmlFullWidth"
@@ -2138,6 +2138,11 @@ msgstr "Per questo template il numero di risultati per pagina deve essere 7. Con
2138
2138
  msgid "hide_dates"
2139
2139
  msgstr "Nascondi le date"
2140
2140
 
2141
+ #: helpers/customizationsI18n
2142
+ # defaultMessage: Home page
2143
+ msgid "homepage"
2144
+ msgstr "Home page"
2145
+
2141
2146
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2142
2147
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2143
2148
  msgid "htmlFullWidth"
package/locales/volto.pot CHANGED
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Plone\n"
4
- "POT-Creation-Date: 2023-11-14T17:26:17.874Z\n"
4
+ "POT-Creation-Date: 2023-11-24T12:06:19.839Z\n"
5
5
  "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
6
  "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
7
  "MIME-Version: 1.0\n"
@@ -2140,6 +2140,11 @@ msgstr ""
2140
2140
  msgid "hide_dates"
2141
2141
  msgstr ""
2142
2142
 
2143
+ #: helpers/customizationsI18n
2144
+ # defaultMessage: Home page
2145
+ msgid "homepage"
2146
+ msgstr ""
2147
+
2143
2148
  #: components/ItaliaTheme/Blocks/HTML/Sidebar
2144
2149
  # defaultMessage: Mostra lo sfondo a tutta larghezza
2145
2150
  msgid "htmlFullWidth"
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": "10.4.2",
5
+ "version": "10.4.3",
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-11-23'
230
+ releaseDate: '2023-11-28'
231
231
  softwareType: standalone/web
232
- softwareVersion: 10.4.2
232
+ softwareVersion: 10.4.3
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -214,7 +214,7 @@ const FeedbackForm = ({ contentType, pathname }) => {
214
214
  <Container>
215
215
  <Row className="d-flex justify-content-center bg-primary">
216
216
  <Col className="col-12 col-lg-6">
217
- <div className="feedback-form">
217
+ <div className="feedback-form" role="form">
218
218
  <Card
219
219
  className="shadow card-wrapper py-4 px-4"
220
220
  data-element="feedback"
@@ -82,12 +82,12 @@ const AnswersStep = ({
82
82
  {state?.map((s, i) => (
83
83
  <FormGroup
84
84
  check
85
- key={s}
85
+ key={'positive-' + s}
86
86
  className="border-bottom border-light mb-4"
87
87
  >
88
88
  <Input
89
- name={s}
90
- id={s}
89
+ name="answer-input-positive"
90
+ id={'positive-' + s}
91
91
  type="radio"
92
92
  checked={s === selectedAnswer}
93
93
  value={s}
@@ -95,7 +95,7 @@ const AnswersStep = ({
95
95
  addon
96
96
  />
97
97
  <Label
98
- for={s}
98
+ for={'positive-' + s}
99
99
  check
100
100
  className="mb-4"
101
101
  data-element="feedback-rating-answer"
@@ -129,12 +129,12 @@ const AnswersStep = ({
129
129
  {state?.map((s, i) => (
130
130
  <FormGroup
131
131
  check
132
- key={s}
132
+ key={'negative-' + s}
133
133
  className="border-bottom border-light mb-4"
134
134
  >
135
135
  <Input
136
- name={s}
137
- id={s}
136
+ name="answer-input-negative"
137
+ id={'negative-' + s}
138
138
  type="radio"
139
139
  checked={s === selectedAnswer}
140
140
  value={s}
@@ -142,7 +142,7 @@ const AnswersStep = ({
142
142
  addon
143
143
  />
144
144
  <Label
145
- for={s}
145
+ for={'negative-' + s}
146
146
  check
147
147
  className="mb-4"
148
148
  data-element="feedback-rating-answer"
@@ -72,7 +72,9 @@ class PaginationItem extends Component {
72
72
  onClick={this.handleClick}
73
73
  onKeyDown={this.handleKeyDown}
74
74
  aria-current={active ? 'page' : null}
75
- data-element={isServiceLink ? 'pager-link' : null}
75
+ data-element={
76
+ isServiceLink && type !== 'prevItem' ? 'pager-link' : null
77
+ }
76
78
  >
77
79
  {type === 'prevItem' && (
78
80
  <>
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  CUSTOMIZATIONS:
3
- - Removed the "Site Administration" link, added a link to the search page
3
+ - Removed the "Site Administration" link, added a link to the home page
4
4
  */
5
5
 
6
6
  import { useEffect } from 'react';
@@ -22,14 +22,13 @@ const NotFound = () => {
22
22
  const dispatch = useDispatch();
23
23
  const lang = useSelector((state) => state.intl.locale);
24
24
 
25
+ const navigationRootPath = config.settings.isMultilingual
26
+ ? `/${toBackendLang(lang)}`
27
+ : '/';
28
+
25
29
  useEffect(() => {
26
- dispatch(
27
- getNavigation(
28
- config.settings.isMultilingual ? `/${toBackendLang(lang)}` : '/',
29
- config.settings.navDepth,
30
- ),
31
- );
32
- }, [dispatch, lang]);
30
+ dispatch(getNavigation(navigationRootPath, config.settings.navDepth));
31
+ }, [dispatch, lang, navigationRootPath]);
33
32
 
34
33
  return (
35
34
  <Container className="view-wrapper">
@@ -47,8 +46,8 @@ const NotFound = () => {
47
46
  />
48
47
  </p>
49
48
  <p>
50
- <Link to="/search">
51
- <FormattedMessage id="Search Site" defaultMessage="Search Site" />
49
+ <Link to={navigationRootPath}>
50
+ <FormattedMessage id="Home page" defaultMessage="Home page" />
52
51
  </Link>
53
52
  </p>
54
53
  {/* <p>
@@ -5,4 +5,8 @@ defineMessages({
5
5
  id: 'opensInNewTab',
6
6
  defaultMessage: 'Opens in new tab',
7
7
  },
8
+ homepage: {
9
+ id: 'homepage',
10
+ defaultMessage: 'Home page',
11
+ },
8
12
  });
@@ -5,6 +5,10 @@
5
5
  gap: 1.3rem;
6
6
  -ms-grid-columns: 1fr 1.3rem 1fr 1.3rem 1fr;
7
7
  grid-template-columns: 1fr 1fr 1fr;
8
+
9
+ .read-more a.read-more {
10
+ flex-direction: row;
11
+ }
8
12
  }
9
13
 
10
14
  .card-wrapper {
@@ -39,7 +43,7 @@
39
43
  }
40
44
 
41
45
  // smartphone
42
- @media (max-width: 585px) {
46
+ @media (max-width: #{map-get($grid-breakpoints, sm)}) {
43
47
  .bandi-in-evidence-cards-wrapper {
44
48
  .card-wrapper {
45
49
  width: 100%;
@@ -51,13 +55,17 @@
51
55
  }
52
56
 
53
57
  // tablet
54
- @media (min-width: 586px) and (max-width: 1367px) {
55
- .bandi-in-evidence-cards-wrapper {
58
+ .bandi-in-evidence-cards-wrapper {
59
+ @media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, xxl)}) {
56
60
  grid-template-columns: auto auto;
61
+ }
57
62
 
58
- div.read-more a.read-more {
59
- flex-direction: row;
60
- }
63
+ @media (min-width: #{map-get($grid-breakpoints, md)}) and (max-width: #{map-get($grid-breakpoints, lg)}) {
64
+ gap: 1rem;
65
+ }
66
+
67
+ @media (min-width: #{map-get($grid-breakpoints, sm)}) and (max-width: #{map-get($grid-breakpoints, md)}) {
68
+ display: block !important;
61
69
  }
62
70
  }
63
71
 
@@ -111,9 +119,8 @@
111
119
  bottom: 0;
112
120
  padding-top: 0.75rem;
113
121
 
114
- @media (max-width: 585px) {
122
+ @media (max-width: #{map-get($grid-breakpoints, sm)}) {
115
123
  display: flex;
116
- flex-direction: row;
117
124
  align-items: center;
118
125
  color: $analogue-1-a7;
119
126
  font-size: 0.77778rem;
@@ -122,7 +129,7 @@
122
129
  text-transform: uppercase;
123
130
  }
124
131
  }
125
- @media (max-width: 585px) {
132
+ @media (max-width: #{map-get($grid-breakpoints, sm)}) {
126
133
  margin-top: 0;
127
134
  }
128
135
  }
@@ -10,6 +10,11 @@
10
10
  max-height: 800px;
11
11
  }
12
12
 
13
+ .feedback-form #vf-more-positive[aria-hidden='true'],
14
+ .feedback-form #vf-more-negative[aria-hidden='true'] {
15
+ visibility: hidden;
16
+ }
17
+
13
18
  .feedback-form {
14
19
  padding: 2rem 0;
15
20
  margin: 0;
@@ -28,6 +33,14 @@
28
33
 
29
34
  .rating-container {
30
35
  padding-bottom: 0;
36
+
37
+ input.volto-feedback-rating:focus + label {
38
+ border: 0;
39
+ box-shadow:
40
+ 0 0 0.2rem $focus-outline-color,
41
+ 0 0 0 0.2rem $focus-outline-color !important;
42
+ outline: none;
43
+ }
31
44
  }
32
45
 
33
46
  .form-check label {