debugger icon indicating copy to clipboard operation
debugger copied to clipboard

[Accessibility] accordion accessibility

Open yzen opened this issue 9 years ago • 33 comments

This issue tracks the work to make the accordion accessible. A PR can do one or several items in the checklist:

  • [x] Visually (CSS focus styling) there is no way to focus on the accordion headers and reload button
  • [x] Need to be able to navigate to headers with keyboard
  • [ ] Need to be able to collapse expand headers with keyboard
  • [x] Headers/Panels should at least have list/listitem semantics including expanded and collapsed states.
  • [ ] Headers listitem should have expanded and collapsed states exposed.
  • [ ] When reaching a tree widget inside an accordion section focus should remain on the container for efficiency. The tree should handle keyboard using arrow keys (similar to source list tree widget).
  • [ ] Breakpoint related check boxes must be properly accessible. Text label (or code line that serves as one) must be set as the formal label for the checkbox.

Screenshot

Screen Shot 2017-09-18 at 8.12.38 PM.png

yzen avatar Sep 18 '17 19:09 yzen

@nastark519 Feel free to ask any questions regarding the issue and possible solutions.

yzen avatar May 01 '18 13:05 yzen

All yours, @nastark519 - we're done for the semester!

If I remember correctly, one student team found that one of the headers was already expandable with keyboard interaction, but that it wasn't highlighting to indicate that to the user. (They found that on accident through repeatedly pressing Tab + Space, so that might be a useful place to start.)

emmet0r avatar May 01 '18 19:05 emmet0r

/claim "Need to be able to collapse expand headers with keyboard"

nastark519 avatar May 07 '18 18:05 nastark519

Thanks for claiming the issue! :wave:

!!! Please check your email and confirm the invitation

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar May 07 '18 18:05 claim

Hello @yzen do you know where or if there is an action listener for onClick to collapse expand headers? we have been looking in Accordion.js ? thank you in advance.

nastark519 avatar May 08 '18 18:05 nastark519

Yeah I believe you are looking in the right place - https://github.com/devtools-html/debugger.html/blob/master/src/components/shared/Accordion.js#L60 I would put a breakpoint in the debugger to see why the handler does not work for when you press space/enter.

yzen avatar May 08 '18 19:05 yzen

@nastark519 hi, let me know if there you had any more follow up questions, or if you needed more pointers.

yzen avatar May 10 '18 14:05 yzen

@yzen @jasonLaster Hi there community. We are still were trying to inject a line of code above the https://github.com/devtools-html/debugger.html/blob/master/src/components/shared/Accordion.js#L60 that essentially is supposed to add an action listener for the space bar. Though we continually are getting error messages is there somewhere else that we should add an listener?

nastark519 avatar May 22 '18 18:05 nastark519

CC @yzen @darkwing @nchevobbe

jasonLaster avatar May 22 '18 18:05 jasonLaster

@nastark519 Could you show some sample code so I could see if I notice a problem? Thank you!

darkwing avatar May 22 '18 18:05 darkwing

We have a bug fix though the we can expand and collapse the headers with any key press not only the space bar. would this still count. No functionality has been compromised. We can still change selection with tab so is this good?

nastark519 avatar May 22 '18 18:05 nastark519

Sure, feel free to open a pull request and we can start the discussion there! 👍

darkwing avatar May 22 '18 18:05 darkwing

Thank you @darkwing pull request #6389 was made. Will see what happens from here.

nastark519 avatar May 22 '18 20:05 nastark519