-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: added condition to set the listing image caption #851
base: main
Are you sure you want to change the base?
Conversation
Attenzione: il metadata image_caption ancora non viene passato dal BE correttamente. Sono in attesa per fare i test finale. |
src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx
Outdated
Show resolved
Hide resolved
src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx
Outdated
Show resolved
Hide resolved
src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sistemato questo per me è ok
Co-authored-by: Giulia Ghisini <[email protected]>
//Verifies if the item has a preview image or an header image | ||
const showTitleAttr = !!( | ||
(item.hasPreviewImage && item.preview_caption) || | ||
(item.image_field && item.image_caption) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questo penso non si possa fare, la didascalia dell'immagine di testata viene usata nella view dei vari content-type come effettiva didascalia dell'immagine. Mi sta bene invece usare la didascalia dell'immagine di anteprima, se è compilata.
const imageCaption = | ||
item.hasPreviewImage && item.preview_caption | ||
? item.preview_caption | ||
: item.image_field && item.image_caption |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vedi sopra, non userei image_caption
US: https://redturtle.tpondemand.com/entity/62740-in-tutti-i-template-del-blocco
Aggiunta logica per la corretta assegnazione degli attributi alt e title nelle immagini dei blocchi listing
È importante mantenere le richieste anteriore create per Parma - l'immagine non può contenere title="" se alt="" è vuoto:
us: https://redturtle.tpondemand.com/entity/50642-rimuovere-title-da-immagine-della-card
pr: #558