cancel
Showing results for 
Search instead for 
Did you mean: 

In the Product Description Page, the title attribute on the cx-media is being over ridden by alt

Yogi2
Discoverer
0 Kudos
79

I have upgraded to Spartacus 2211.32 and noticed that the "title" tag on cx-media no longer works. I have created a custom "productImageComponent" by extended the existing "ProductImageZoomProductImagesComponent" and using the "title" attribute on the cx-media. But the title is not visible when I hover on the image. Seems like its being over ridden by the "alt" attribute.

Seems like OOTB, alt and title are set to same value. Is there a way to over ride this?

<img
      [loading]="loading"
      [alt]="media.alt"
      [title]="media.alt"
      [src]="media.src"
      [attr.role]="media.role"
      (load)="loadHandler()"
      (error)="errorHandler()"
    />

 

Accepted Solutions (0)

Answers (0)