Skip to content

Conversation

@IlianaB
Copy link
Contributor

@IlianaB IlianaB commented Nov 4, 2025

related to #7729

@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Nov 4, 2025

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 4, 2025 15:13 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 5, 2025 12:57 Inactive
};
}

return undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That means if the avatar is not interactive and placed within a table cell, it will be announced as "Empty". I'm not sure whether this is the expected behavior from an accessibility perspective.

if (this._interactive) {
return {
role: this._role as AriaRole,
type: this._ariaHasPopup,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in the other change, just like in UI5, the type should be translatable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @aborjinik ,
thank you for your comments. Changes are still in progress.

I wonder regarding the roles - should they also be translatable? Like in this case role could be "button" or "img". But "img" should be read out as "Image" (best case) and there is no such AriaRole? What should we do in this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind. I think I got it - table (and also customlistitem) will use only type, NOT ROLE, when they construct the string description of all acccessibilityInfo properties of a component.
In case component does not have specific "type" (like CheckBox has role=checkbox and that's it, "CheckBox" will be also returned as type but translatable). When component have different "type" than "role" (like in Avatar - it's role is Button or Img, but "type" can come from hasPopup /menu, listbox, etc/ - "type" will be the translatable value of "hasPopup". Or Select - "role" is "combobox", but more specific type is "listbox" -> listbox is returned as type, translatable).

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 17, 2025 14:53 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 17, 2025 15:04 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants