The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
Looking to create an accordion menu similar to below screenshot using HTML. Any suggestions would be appreciated.
Thanks, I'm not a developer - is there HTML that would work for this?
Unfortunately not. The only way to make this work is a combination of HTML and JavaScript.
Here are some plug-n-play options, might cost.
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?
https://cidilabs.instructure.com/courses/102/pages/add-accordion-panels-and-tabs
This just changed my day. Thank you carroll-ccsd!
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">
Thanks!
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: https://community.canvaslms.com/thread/21407-making-accordion-collapsed-by-default
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in