[SF][A11Y][StandardListItem] - Need support for alternative text in StandardListItem image
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
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!
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
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
Internal Reference: BGSOFUIPIRIN-6177
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