Skip to content

Commit

Permalink
Merge branch 'v2' into us_46340_v2_ordinamento_risultati_ricerca_tast…
Browse files Browse the repository at this point in the history
…iera
  • Loading branch information
deodorhunter authored Sep 20, 2023
2 parents aa2dac7 + 0f9f872 commit 39ab159
Show file tree
Hide file tree
Showing 13 changed files with 101 additions and 13 deletions.
11 changes: 9 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@
- ...
-->

## Versione X.X.X (19/09/2023)
## Versione x.x.x (dd/mm/yyyy)

### Fix
### Migliorie

- Nel template Blocco link solo immagini con link esterni, icona accessibilità per link esterni ora è disattivabile attraverso opzione del template
- Migliorata l'accessibilità e il supporto Screen Reader per il menu a tendina "Ordina Per" nella pagina di ricerca

### Fix

- Fissato il layout del template Blocco link solo immagini con link esterni, icona accessibilità per link esterni ora è posizionata invece in overlay se presente


## Versione 7.21.0 (19/09/2023)

### Novità
Expand All @@ -47,6 +53,7 @@
- Blocco info: Colori dentro editor di testo sistemati (bottoni draftJS)
- I link nella modulistica mostrano la remoteUrl


## Versione 7.20.4 (13/09/2023)

### Fix
Expand Down
5 changes: 5 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2497,6 +2497,11 @@ msgstr ""
msgid "other_info"
msgstr ""

#: config/Blocks/ListingOptions/smallBlockLinksTemplate
# defaultMessage: Non mostrare l'icona di accessibilità per i link a siti esterni
msgid "override_links_accessibility_marker"
msgstr "Barrierefreiheitssymbol nicht für Links anzeigen, die auf externe Websites oder Ressourcen verweisen"

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
# defaultMessage: Pagamenti previsti e modalità
msgid "pagamenti"
Expand Down
5 changes: 5 additions & 0 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2482,6 +2482,11 @@ msgstr "Ohter topics"
msgid "other_info"
msgstr "Further information"

#: config/Blocks/ListingOptions/smallBlockLinksTemplate
# defaultMessage: Non mostrare l'icona di accessibilità per i link a siti esterni
msgid "override_links_accessibility_marker"
msgstr "Do not show accessibility icon for links pointing to external websites or resources"

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
# defaultMessage: Pagamenti previsti e modalità
msgid "pagamenti"
Expand Down
5 changes: 5 additions & 0 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2491,6 +2491,11 @@ msgstr "Otros temas"
msgid "other_info"
msgstr "Más información"

#: config/Blocks/ListingOptions/smallBlockLinksTemplate
# defaultMessage: Non mostrare l'icona di accessibilità per i link a siti esterni
msgid "override_links_accessibility_marker"
msgstr "No mostrar el ícono de accesibilidad para enlaces que apuntan a sitios web o recursos externos"

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
# defaultMessage: Pagamenti previsti e modalità
msgid "pagamenti"
Expand Down
5 changes: 5 additions & 0 deletions locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2499,6 +2499,11 @@ msgstr "Autres sujets"
msgid "other_info"
msgstr "Informations complémentaires"

#: config/Blocks/ListingOptions/smallBlockLinksTemplate
# defaultMessage: Non mostrare l'icona di accessibilità per i link a siti esterni
msgid "override_links_accessibility_marker"
msgstr "Ne pas afficher l'icône d'accessibilité pour les liens pointant vers des sites Web ou des ressources externes"

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
# defaultMessage: Pagamenti previsti e modalità
msgid "pagamenti"
Expand Down
5 changes: 5 additions & 0 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2482,6 +2482,11 @@ msgstr "Altri argomenti"
msgid "other_info"
msgstr "Ulteriori informazioni"

#: config/Blocks/ListingOptions/smallBlockLinksTemplate
# defaultMessage: Non mostrare l'icona di accessibilità per i link a siti esterni
msgid "override_links_accessibility_marker"
msgstr ""

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
# defaultMessage: Pagamenti previsti e modalità
msgid "pagamenti"
Expand Down
7 changes: 6 additions & 1 deletion locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2023-09-04T15:56:21.451Z\n"
"POT-Creation-Date: 2023-09-19T07:30:36.575Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -2484,6 +2484,11 @@ msgstr ""
msgid "other_info"
msgstr ""

#: config/Blocks/ListingOptions/smallBlockLinksTemplate
# defaultMessage: Non mostrare l'icona di accessibilità per i link a siti esterni
msgid "override_links_accessibility_marker"
msgstr ""

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
# defaultMessage: Pagamenti previsti e modalità
msgid "pagamenti"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const SmallBlockLinksTemplate = ({
linkTitle,
linkHref,
center_cards,
override_links_accessibility_marker,
}) => {
return (
<div className="small-block-links">
Expand Down Expand Up @@ -44,6 +45,9 @@ const SmallBlockLinksTemplate = ({
item={!isEditMode ? item : null}
href={isEditMode ? '#' : ''}
className="img-link"
overrideMarkSpecialLinks={
override_links_accessibility_marker
}
>
{image}
</UniversalLink>
Expand Down
1 change: 1 addition & 0 deletions src/config/Blocks/ListingOptions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ export { addSliderTemplateOptions } from 'design-comuni-plone-theme/config/Block
export { addSimpleListTemplateOptions } from 'design-comuni-plone-theme/config/Blocks/ListingOptions/simpleListTemplate';
export { addCardWithSlideUpTextTemplateOptions } from 'design-comuni-plone-theme/config/Blocks/ListingOptions/cardWithSlideUpTextTemplate';
export { addPhotogalleryTemplateOptions } from 'design-comuni-plone-theme/config/Blocks/ListingOptions/photogalleryTemplate';
export { addSmallBlockLinksTemplateOptions } from 'design-comuni-plone-theme/config/Blocks/ListingOptions/smallBlockLinksTemplate';
32 changes: 32 additions & 0 deletions src/config/Blocks/ListingOptions/smallBlockLinksTemplate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { defineMessages } from 'react-intl';

import { addSchemaField } from 'design-comuni-plone-theme/config/Blocks/ListingOptions';

const messages = defineMessages({
override_links_accessibility_marker: {
id: 'override_links_accessibility_marker',
defaultMessage:
"Non mostrare l'icona di accessibilità per i link a siti esterni",
},
});

export const addSmallBlockLinksTemplateOptions = (
schema,
formData,
intl,
position = 0,
) => {
let pos = position;

addSchemaField(
schema,
'override_links_accessibility_marker',
intl.formatMessage(messages.override_links_accessibility_marker),
null,
{ type: 'boolean' },
pos,
);
pos++;

return pos;
};
9 changes: 7 additions & 2 deletions src/config/Blocks/listingVariations.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ import {
addSimpleListTemplateOptions,
addCardWithSlideUpTextTemplateOptions,
addPhotogalleryTemplateOptions,
addSmallBlockLinksTemplateOptions,
} from 'design-comuni-plone-theme/config/Blocks/ListingOptions';

import { addLighthouseField, cloneBlock } from 'design-comuni-plone-theme/config/Blocks/ListingOptions/utils';
import {
addLighthouseField,
cloneBlock,
} from 'design-comuni-plone-theme/config/Blocks/ListingOptions/utils';

const italiaListingVariations = [
{
Expand Down Expand Up @@ -168,7 +172,8 @@ const italiaListingVariations = [
template: SmallBlockLinksTemplate,
skeleton: SmallBlockLinksTemplateSkeleton,
schemaEnhancer: ({ schema, formData, intl }) => {
/*let pos = */ addDefaultOptions(schema, formData, intl);
let pos = addDefaultOptions(schema, formData, intl);
addSmallBlockLinksTemplateOptions(schema, formData, intl, pos);
return schema;
},
cloneData: cloneBlock,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const UniversalLink = ({
children,
className = null,
title = null,
overrideMarkSpecialLinks = false,
...props
}) => {
const intl = useIntl();
Expand Down Expand Up @@ -117,14 +118,15 @@ const UniversalLink = ({
{...props}
>
{children}
{config.settings.siteProperties.markSpecialLinks && (
<Icon
icon="it-external-link"
title={title}
size="xs"
className="align-top ml-1 external-link"
/>
)}
{!overrideMarkSpecialLinks &&
config.settings.siteProperties.markSpecialLinks && (
<Icon
icon="it-external-link"
title={title}
size="xs"
className="align-top ml-1 external-link"
/>
)}
</a>
);
} else if (isDownload) {
Expand Down
7 changes: 7 additions & 0 deletions theme/ItaliaTheme/Blocks/_smallblockLinkstemplate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
background: $white;
box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.1);

.img-link svg {
position: absolute;
top: 4px;
right: 4px;
z-index: 2;
}

img,
.img-skeleton {
width: auto;
Expand Down

0 comments on commit 39ab159

Please sign in to comment.