Hi, I have used the JS accordion on this staging site.
It’s working in every other instance, for example this page:
But on the test prep pages, the arrow active state isn’t being applied:
I deleted the classes and reset them, and I’ve tried to replicate the other pages, but I can’t figure out why it’s not working. Any advice would be appreciated - thank you!
hey @ashley! seems that we are missing the fs-accordion-active = is-active-accordion attribute on the page. Could you add it and test it again?
By the way, you seem to have the accordion script repeated. I believe the JS version will automatically add the script when needed so you can remove it from your setup.
Hi @Support-Luis - for the item .test-accordion_arrow-wrapper I’ve added a combo class .is-active-accordion that rotates the icon. I’ve also added the attribute fs-accordion-active = is-active-accordion to this item. Have I done this correctly? It still doesn’t seem to be working.
I’ve also removed the repeat JS script - thanks for your advice
@Support-Luis If I add this code before the head <script defer src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-accordion@1/accordion.js"></script>
Does that mean I delete the embed that is part of the library?
I have added the combo class .is-active-accordion to .test-accordion_arrow-wrapper and also added the attribute fs-accordion-active = is-active-accordion to this item. Have I done this correctly? It still doesn’t seem to be working.