-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ui5-li] Unable to set accessibleRole attribute for resulting ui5-icon when using icon property #4682
Comments
Hello @dkris, |
Hello Didi, actually this is a feature request, the author requests an API to define/control the accessible name of the ui5-icon that is rendered inside StandardListItem. |
Hello @dkris from our offline discussions I know that you need to control/define the Hello @SAP/ui5-webcomponents-topic-p it seems that our SF colleagues, that recently requested an API for the ui5-icon, |
Hello, the purpose of the icon here is only decorative. Should have |
You're correct @ilhan007. Thank you for checking. |
@dkris you can see the explanation above - "the purpose of the icon here is only decorative - should have role="presentation" and aria-hidden="true" by default." |
@ilhan007 Is this request going to be handled by @SAP/ui5-webcomponents-topic-p. Will we have an config option available to set the role of the icon within StandardListItem? |
@dkris no, as far I understand this is the team's statement - the purpose of the icon in the StandardListItem is only decorative - it should have role="presentation" and aria-hidden="true". It's not meant to have different role. |
I apologize for the misunderstanding. I meant that we need to add these attributes internally. Currently the role is 'img', which should be @dkris, apart from excluding the icon from the acc tree do you need the API for any other use case? Will it be enough to add the above attributes internally? |
@dobrinyonkov Excluding the icon from acc tree is the only use case for this API request. |
Hello, PR #4742 will add the role="presentation" and aria-hidden="true" attributes. |
Hello @dkris , As the last mention PR is already merged and the issue is fixed, I am closing the GitHub issue. Best regards, |
Bug Description
Hi Team,
When
icon
property for StandardListItem is set, there is no option to set theaccessibleRole
(#4548) property for the resulting ui5-icon.When we specify
action-settings
as the value for theicon
parameter, the resultingsvg
image for this list item has a defaultimg
role set to it.When a screen reader is used to navigate the application, the settings list item is announced twice as "Settings settings".
Expected Behavior
accessibleRole should be a config option on the
ui5-li
, that can be passed down toui5-icon
when theicon
property for StandardListItem is set. Labels should be announced only once when using screen reader to navigate within the application.Steps to Reproduce
Context
Priority
The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:
Note: The priority might be re-evaluated by the issue processor.
Stakeholder Info (if applicable)
The text was updated successfully, but these errors were encountered: