Closed pankajpandey01 closed 1 year ago
Hello @SAP/ui5-webcomponents-topic-p,
The reporter claims that the priority order of the avatar properties should be image > initials > icon but at this point it seems like the icon has higher priority over the initials.
Is this expected behavior?
Regards, Plamen Ivanov
Hello @pankajpandey01,
The icon is with higher rendering priority than the initials . I would advise you to use only one of the attributes and not two at the same time. In your case, since you want to show initials, there is no need of the icon attribute. If the provided initials are not valid, the renderer will add fallback icon by itself.
Thanks and regards, Yana
Hi @yanaminkova We want to show "person-placeholder" as fallback icon. Currently "employee" is shown as fallback from avatar component . Please suggest, how we can change default fallback icon?
Hi @pankajpandey01, For the moment, this is not possible, but I created a backlog item, so we will add this functionality. Internal Reference: BGSOFUIPIRIN-6092
Hi @pankajpandey01,
the functionality for setting custom fallback icon is already available.
Regards, Yana
Bug Description
Scenario: image slot: not provided initials: provided icon: provided
In above scenario, avatar is not showing initials, instead showing icons.
Affected Component
ui5-avatar
Expected Behaviour
Scenario: image slot: not provided initials: provided icon: provided
In above scenario, avatar should shown initials. Avatar render order should be image > initials > icon
Isolated Example
https://codesandbox.io/s/ui5-webcomponents-forked-r3dgkg
Steps to Reproduce
Please refer example.
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
1.10.3
Browser
Chrome, Edge, Firefox, Safari
Operating System
No response
Additional Context
Stakeholder Info
Declaration