fix(ui5-list): change role mappings so no interactive elements are ne… #3952
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #3927
Issue: Interactive elements should not be nested inside element with role option.
There are nested interactive elements inside list items in selection mode -
ui5-radio-button
&ui5-checkbox
.Summary of changes:
listbox -> option[]
tolist -> listitem[]
;aria-describedby
as thelistitem
role does not supportaria-selected
;aria-multiselectable
is removed because it is not supported on the rolelist
;Note:
aria-labelledby
chould not be used for the "Selected" & "Not Selected" texts as NVDA reads the whole value of the attribute when some of its references changes content. In this case - the whole content of the item.