-
Notifications
You must be signed in to change notification settings - Fork 135
fix(core): List: Group label not read #13494
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
base: main
Are you sure you want to change the base?
Conversation
…e to screen readers
✅ Deploy Preview for fundamental-ngx ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
… need to extend ListFocusItem
…s, not to group headers
<li | ||
fd-list-item | ||
fd-list-group-header | ||
[ariaRole]="'group'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need of binding here, can be just ariaRole="group"
role="option" | ||
fd-list-item | ||
#item="fdListItem" | ||
[ariaRole]="'option'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
<li | ||
fd-list-item | ||
fd-list-group-header | ||
[ariaRole]="'group'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need of binding
fd-list-item | ||
fd-list-group-header | ||
[ariaRole]="'group'" | ||
[attr.aria-roledescription]="'Group Header'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
fd-list-item | ||
fd-list-group-header | ||
[ariaRole]="'group'" | ||
[attr.aria-roledescription]="'Group Header'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Related Issue(s)
closes #12584
Description
Makes List
group
itemfocusable
so that it is read by screen readers.Add
fd-list-item
attribute tofd-list-group-header
to make the header focusable. Addsrole='group'
to the element.Adds the following aria attributes to the group header to improve description so that readers read groups correctly (have followed the pattern used in UI5 as advised by a design accessibility expert):
aria-roledescription
,aria-label
,aria-owns
.Adds an
id-with-group-index
attribute to list items to allow calculation ofaria-owns
for the header.Adds
aria-setsize
,aria-posinset
to appoint which list item belongs to which group.Move
tabindex
fromfd-list-group-header
andfd-list-item
tofd-list
to avoid JAWS trapping focus on the first item and blocking up and down arrows.Components affected:
Screenshots