Skip to content

[Avatar]: Avatar does not display initials for non-Latin usernames (e.g. Ukrainian, Arabic) #13996

Description

@PlutaKatarzyna

Bug Description

The circular avatar falls back to a generic user icon instead of displaying the user's initials when the first and/or last name contains non-Latin characters (e.g. Cyrillic/Ukrainian or Arabic script).

The avatar shows a generic user placeholder icon instead of the user's initials when the name contains non-Latin characters.

Examples:

<ui5-avatar initials="ГК"></ui5-avatar>
<ui5-avatar initials="ŁP"></ui5-avatar>
Image Image

Affected Component

Avatar, Avatar Group

Expected Behaviour

Initials are displayed regardless of used letters passed in the initials property.

Isolated Example

https://ui5.github.io/webcomponents/components/main/Avatar/

Steps to Reproduce

  1. Open avatar playground/documentation
  2. Add initials property and set value to non-Latic (f.e. "ГК" or "ŁP")
  3. Icon is displayed instead of initials

Log Output, Stack Trace or Screenshots

No response

Priority

High

UI5 Web Components Version

2.25.0

Browser

Chrome

Operating System

No response

Additional Context

UDEx original ticket https://github.tools.sap/sapudex/digital-design-system/issues/3491

Organization

SAP - UDEx Components & Tokens

Declaration

  • I’m not disclosing any internal or sensitive information.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions