-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fix: Update item count ARIA for grouped items (fixes #160) #162
Conversation
@kirsty-hames Thanks for taking a look at this one. This may be intended behavior, but here my test case and what I'm seeing:
|
Hey @swashbuck, yep, groups are considered an item and this is the behaviour I'd expect. I think most use cases, all items would be assigned to a group or no groups enabled (as standard Boxmenu setup). In the instance not all items are assigned a group (as per your test case), I'm not sure what an alternative would be. The current aria reflects the menu item structure at least. |
Co-authored-by: Brad Simpson <[email protected]>
Thanks @swashbuck. I've applied your suggestion in a4cbeda |
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.
👍
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.
Working as expected with FW v5.31.23
🎉 This PR is included in version 6.3.12 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fixes #160
Item count is relevant to it's parent container (all items within Boxmenu as default, or items contained within a parent group).
Test PR
Configure your course to use the Boxmenu grouping (see example for ref).
Inspect 'View' Button
aria-label
and item count should be relevant to the Boxmenu group set up.e.g. item index in group + total items in group