Looking to create an accordion menu similar to below screenshot using HTML. Any suggestions would be appreciated.
I'd start here.
Inclusive Components - Collapsible Sections
Inclusive Design Principles
Thanks, I'm not a developer - is there HTML that would work for this?
Here are some plug-n-play options, might cost.
Accordion | H5P
E-Learning Software and Authoring Apps - Articulate
Accordions (2 types) and tabs are basic features of cidi_labs cidi_labs design tools SaaS product. Very elegant and customizable so overall design themes are maintained. A Google search will show you their website.
Expander functionality would be great. Assuming there is a cost to grab code?
This just changed my day. Thank you Robert Carroll!
Cool! Which option are you considering?
I plan to try to use the Collapsible Sections as a template. That way, I can use a <template> tag when I want to the accordions to work rather than every time there's an <h3> it shows up like an accordion. That's the theory, at least.
I'd love to know how your progress goes getting this into Canvas. Please let me know and/or post your progress and maybe we can collaborate on it.
So tried to make this work. Unfortunately, it looks like the RCE is blocking the <main> and <toggle-section> tags so the current setup is not working. Looking at some options to make it work, but wanted to alert you to the wall we've hit.
Would you mind sharing the progress of the code and we see if there's a workaround? Hopefully, without completely destroying the accessibility.
We just started with using the original code from your link: Collapsible Sections
So I'm not sure how it needs to be tweaked at the moment, but it'll be changing out the class sections.
This is the specific sections that seemed to be breaking:
<main> <toggle-section open="false">
I know this post was a bit ago, but I have been searching for the same thing! The last school I worked for as an ID had Cidi labs, which is what your screenshot looks like. It is SO nice!
I found this thread with the closest alternative: Making accordion collapsed by default
Retrieving data ...