ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[SF][A11y][Avatar]: [Avatar icon text does not meet minimum color contrast requirement ]

Open tandan0813 opened this issue 9 months ago • 8 comments

Describe the bug

The avatar icon text does not meet the minimum required color contrast ratio of 4.5:1 and has a ratio of 4.2:1

Image

Isolated Example

https://ui5.github.io/webcomponents-react/v2/?path=/docs/data-display-avatar--docs

Reproduction steps

...

Expected Behaviour

Avatar text should meet the minimum color contrast ratio of 4.5:1 against its background.

Screenshots or Videos

No response

UI5 Web Components for React Version

2.18.0

UI5 Web Components Version

2.18.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output


Organization

No response

Declaration

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

tandan0813 avatar Feb 05 '26 01:02 tandan0813

Hi @tandan0813,

the screenshot you shared is too small to properly review. Please double-check and provide a clearer one.

In the meantime, I’ll forward this to the ui5/webcomponents repository, as the Avatar component is maintained there.

Lukas742 avatar Feb 05 '26 07:02 Lukas742

Hello @tandan0813,

I've measured the contrast ratio of the ui5-avatar icons from the link you provided - https://ui5.github.io/webcomponents-react/v2/?path=/docs/data-display-avatar--docs as well as on the playground sample page here - https://ui5.github.io/webcomponents/components/main/Avatar/#icon using the Horizon theme and it matches the accessibility requirements.

The screenshot is not clearly visible, if there is an additional info you could provide please re-open the issue.

ndeshev avatar Feb 05 '26 11:02 ndeshev

This issue has been closed. To reopen, just leave a comment!

github-actions[bot] avatar Feb 05 '26 11:02 github-actions[bot]

Hi @ndeshev Here is the screenshot, could you please help check it again? ColorScheme is "Placeholder".

Image

tandan0813 avatar Feb 06 '26 01:02 tandan0813

Hello @UI5/ui5-team-ctr-pir I tested the foreground and background color contrast of the avatars with colors cheme "Placeholder" and it indeed seems to insufficient. The other color schemes are fine, the issue present only with the "Placeholder" one. Could please check it out.

ndeshev avatar Feb 09 '26 07:02 ndeshev

Hello @tandan0813,

I’d like to give you a brief update on your ticket. We have contacted the responsible colleagues from the design organization, and actions have been initiated to address the accessibility issue. We will share more updates with you soon.

Regards, Konstantin

kgogov avatar Feb 19 '26 12:02 kgogov

Hello @tandan0813,

I’ve rechecked the theme parameters updated from the design theme, and they are now correct. I’ve attached a screenshot along with the example I tested. I will proceed with closing the issue.

Example

Image

kgogov avatar May 07 '26 13:05 kgogov

This issue has been closed. To reopen, just leave a comment!

github-actions[bot] avatar May 07 '26 13:05 github-actions[bot]