Implement OnyxAvatar with locale sensitive Initials #2454
Labels
0-refinement
All issues that can or need to be estimated in our next refinement
dev
Requires technical expertise
Why?
The OnyxAvatar should also work with names that use characters that rely on multiple code-points.
Acceptance criteria
General:
props.label
is deprecatedprops.username
is added and supersedes theprops.label
DisplayName
which supports passing a locale, as shown in the implementation detailsAlgorithm:
props.src
was provided, it is shownprops.username
includes unsupported characters (see fluent-ui) don't show initials, use Fallback.DisplayName
type, otherwise from the injectedi18n
Aria:
Avatar of ${props.username}
Implementation details
Fallback content for the image loading and on error can be shown without JS, using the
<object>
element:Reference implementations
Definition of Done
Should be covered by tests:
Make sure, that
Approval
Storybook
The text was updated successfully, but these errors were encountered: