-
Notifications
You must be signed in to change notification settings - Fork 345
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
Menu button pattern and 4 examples: Set aria-expanded to false when menus are closed #2839
Conversation
I don't see any javascript changes. The menubuttons do not have aria-expanded set to false when the menus are not visible. |
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<jugglinmike> Topic: PR 2839 - set aria-expanded false when menus are closed<jugglinmike> github: https://github.com//pull/2839 <jugglinmike> arigilmore: I worked on this with Andrea <jugglinmike> arigilmore: Oh, wait, no. Andrea worked on this alone <jugglinmike> Matt_King: This is updating JavaScript, documentation, and tests <jugglinmike> Matt_King: I don't see any JavaScript changes here <jugglinmike> arigilmore: I'll let Andrea know and see if she needs any help working on it <jugglinmike> Matt_King: Probably the more complicated part of this fix will be writing a test <jugglinmike> Matt_King: It at least won't be starting from scratch--there is already a test for setting aria-expanded to "true" <jugglinmike> Jem: We eventually need a reviewer... <jugglinmike> Matt_King: Let's wait until we have the patch closer to ready |
Regarding the test review, below example tests are missing for menu-button
|
… default state of false before documentation of true
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.
It appears we still need additional changes.
content/patterns/toolbar/examples/js/FontMenuButton.js is still removing aria-expanded=false.
The tests are still testing to ensure false is not present when the menu is closed.For example, see line 88 in
test/tests/menu-button_actions-active-descendant.js
Corresponding changes are needed in:
test/tests/menu-button_actions.js
test/tests/menu-button_links.js
test/tests/toolbar_toolbar.js
The ARIA Authoring Practices (APG) Task Force just discussed The full IRC log of that discussion<jugglinmike> Topic: PR 2839 - set aria-expanded false when menus are closed<jugglinmike> github: https://github.com//pull/2839 <jugglinmike> Matt_King: I did a bunch of work on this last night. I found two areas of concern <jugglinmike> Matt_King: First, the documentation is changed for toolbar, but not the actual script <jugglinmike> Jem: I'll take a look at the example you shared <jugglinmike> s/Jem:/Andrea_Cardona:/ <jugglinmike> Matt_King: Second is the tests <jongund> q+ <jugglinmike> Matt_King: The test message is exactly wrong. It's saying that it's testing to make sure the value is "false" <jugglinmike> Matt_King: The tests need to be updated, but don't forget to update the test message as well <jugglinmike> Jem: We're missing a bunch of keyboard tests <jugglinmike> Matt_King: We should address that in a separate pull request. In this pull request, we should focus on the change for aria-expanded |
@jongund hi Jon! I was hoping you might be able to help me with the current failing tests. I'm not sure how to debug / fix Thank you! |
The following 2 tests should replace the current
NOTE: You may also want to adjust the test ID from "toolbar-menubutton-aria-expanded" to "toolbar-menubutton-aria-expanded-true" in Let me know if this helps,
|
@jongund just implemented those changes - thank you so much! Current failing test does not have to do with this PR :/ |
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.
Thanks for making the updates Andrea, the changes look good to me.
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.
Editorial and functional reviews are complete and look good.
Thank you @andreancardona for all your work on this update! Thank you also to @jongund for the excellent support to help get this over the line. |
Closes #697 and #2834 with the following changes:
Preview links
element.focus()
Review checklist
Reviewers: To learn what needs to be covered by each review, Follow the link for the type of review to which you are assigned.
WAI Preview Link (Last built on Mon, 11 Dec 2023 15:40:06 GMT).