ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[SF][A11Y][StandardListItem] - Need support for alternative text in StandardListItem image

Open zijies1 opened this issue 3 years ago • 1 comments

Feature Request Description

It seems that there are no feasible ways to pass an alternative text to the image element when using StandardListItem and there is no default value set neither, which is required to pass A11Y tests.

Proposed Solution

Maybe we can add a new props value like imageAlt to StandardListItem or set a default value for the alt text of image element.

Proposed Alternatives

A clear and concise description of any alternative solutions or features you've considered.

Additional Context

Screen Shot 2022-08-01 at 09 45 14

Priority

  • [ ] Low
  • [ ] Medium
  • [ ] High
  • [x] Very High

A clear and concise description of the impact/urgency of the required feature.

Stakeholder Info (if applicable)

  • Organization: SuccessFactors

Rondo Shen Thank you!

zijies1 avatar Aug 01 '22 01:08 zijies1

Hello @SAP/ui5-webcomponents-topic-p

Please have a look in that request. I checked that in openui5 the avatar is in the API as an aggregation. In our case it is a property.

  • In case you expect to have more similar request, please consider adding slot instead of lots of properties.

Regards, Martin

MapTo0 avatar Aug 01 '22 09:08 MapTo0

Hi @zijies1,

as stated above, we will provide a slot to serve for customization of the image/avatar, similarly to how this is achieved in the UI5 classic project.

Kind Regards, Dobrin

dobrinyonkov avatar Jul 11 '23 12:07 dobrinyonkov

Internal Reference: BGSOFUIPIRIN-6177

dobrinyonkov avatar Jul 11 '23 12:07 dobrinyonkov

Hi, this can be achieved by using the imageContent slot:

<ui5-li> 
        <ui5-avatar slot="imageContent" id="imageContent-slot-avatar">
	        <img src="./img/woman_avatar_5.png" alt="Woman image">
        </ui5-avatar>
        Avatar inside imageContent slot
</ui5-li>

Regards, Dobrin

dobrinyonkov avatar Oct 17 '23 09:10 dobrinyonkov