UI5 / UI5/webcomponents

[Avatar]: decorative property should be supported

Open
#9,875 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Design Pending feature request SAP SF TOPIC P
Dominant language
TypeScript
Stars
1.8k
Forks
285
Avg merge
3d 2h
Merged PRs (30d)
59

Description

Is your feature request related to a problem?

Yes. In some cases Avatar is just used for decorative purpose and should be ignored by accessibility tools.
For example: Avatar user name is shown in text beside the avatar, In this case Screen reader will read user name from text and also from Avatar accessibleName as shown below
Screenshot 2024-09-13 at 4 42 33 PM

Describe the solution you'd like

Provide decorative property like : https://ui5.sap.com//#/api/sap.m.Avatar%23controlProperties

Describe alternatives you've considered

No response

Additional Context

No response

Organization

SuccessFactors

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The request concerns the Avatar component's public API and accessibility behavior; start by locating its TypeScript implementation and existing accessibility tests. Verify how decorative usage should affect announcements, then add the property and tests showing that an avatar is ignored when equivalent user-name text is present.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
accessibility, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.