SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.51k stars 262 forks source link

Custom avatar shape within ui5-li #5462

Open wulinjie122 opened 2 years ago

wulinjie122 commented 2 years ago

Feature Request Description

Hi Team, I am from successfactors, recently we are developing a page which renders a person list, I am wondering if we can change the shape of avatar within <ui5-li>, I would like to set the shape to Circle, but by default it uses Square, and there's no way to change this property.

<ui5-li image={_getUserPhoto(person.userId)}>
      <ui5-title level="H5">{person.fullName}</ui5-title>
      <span>
          <ui5-label class={styles.email}>{person.email}</ui5-label>
          <ui5-label class={styles.title}>{person.title}</ui5-label>
      </span>
  </ui5-li>

Proposed Solution

It would be better if we can provide a property to custom avator shape.

Proposed Alternatives

N/A

Additional Context

N/A

Priority

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

Stakeholder Info (if applicable)

dobrinyonkov commented 2 years ago

Internal Refenrece: BGSOFUIPIRIN-5892

We discussed that a slot enabling for custom avatars is the option go with this one.