- From: Bryan Garaventa <bryan.garaventa@ssbbartgroup.com>
- Date: Fri, 5 Aug 2016 17:20:56 +0000
- To: Rich Morin <rdm@cfcl.com>, "w3c-wai-ig@w3.org" <w3c-wai-ig@w3.org>
Looks good. "I suspect there's a simple way to display combinations of functions (toggling them individually), but my web-fu is a bit sketchy. Help?" You can set both of the allowToggle and allowMultiple properties to true within the setup file to enable independent toggle behavior for all accordion triggering elements. "For extra credit, it would be great to be able to hide and show parts of functions (e.g, the body of the case construct). Suggestions?." You can easily nest accordions, you simply need to wrap the setup script into a function that can be called multiple times to configure different groups of accordions. All the best, Bryan Bryan Garaventa Accessibility Fellow SSB BART Group, Inc. bryan.garaventa@ssbbartgroup.com 415.624.2709 (o) www.SSBBartGroup.com -----Original Message----- From: Rich Morin [mailto:rdm@cfcl.com] Sent: Thursday, August 04, 2016 4:38 PM To: w3c-wai-ig@w3.org Subject: Re: Using WAI-ARIA for code folding? > On Aug 4, 2016, at 12:34, Bryan Garaventa wrote: > If you use a Tree widget, it will enforce a form field type effect for > screen reader users, which will make it nearly impossible to review > and copy code if that is what you want. Ideally, the user would be able to review, edit, copy and paste, etc. However, being able to efficiently review code would be a good start. > The simple Accordion pattern would work best for this, as suggested by > others earlier. I can't find those suggestions; can you point me to a specific posting? > Here is some code recently built for the W3C that demonstrates this, > with configuration settings within the file setup.js for changing the > functionality as needed. Thanks! I hacked up the example and got it to display two alternating functions: http://cfcl.com/rdm/Projects/ARIA_Accord/t1.htm I suspect there's a simple way to display combinations of functions (toggling them individually), but my web-fu is a bit sketchy. Help? For extra credit, it would be great to be able to hide and show parts of functions (e.g, the body of the case construct). Suggestions?. -r -- http://www.cfcl.com/rdm Rich Morin rdm@cfcl.com http://www.cfcl.com/rdm/resume San Bruno, CA, USA +1 650-873-7841 Software system design, development, and documentation
Received on Friday, 5 August 2016 17:38:19 UTC