# Accordion Arrow - Active State

**URL:** <https://forum.finsweet.com/t/accordion-arrow-active-state/2312>\
**Category:** General\
**Created:** [December 27, 2023, 9:43am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312 "2023-12-27T09:43:21Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashley](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/ashley/32/3842_2.png) [@ashley](https://forum.finsweet.com/u/ashley)\
**Post date:** [December 27, 2023, 9:43am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/1 "2023-12-27T09:43:22Z")

</div>

Hi, I have used the JS accordion on this staging site.

It’s working in every other instance, for example this page:

> **[Enhance Skills with Executive Functioning Services | Applerouth](https://applerouth-site.webflow.io/services/executive-functioning)**
>
> Strengthen executive functioning skills with Applerouth. Our specialized services empower better organization, focus, and success in academics and beyond.

But on the test prep pages, the arrow active state isn’t being applied:

> **[Expert SSAT Test Prep Services | Applerouth](https://applerouth-site.webflow.io/services/test-prep/ssat)**
>
> Achieve success on the SSAT with Applerouth's expert test prep services. Prepare comprehensively for private school admissions.

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!

---

<div class="post-metadata">

**Author:** ![ashley](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/ashley/32/3842_2.png) [@ashley](https://forum.finsweet.com/u/ashley)\
**Post date:** [December 29, 2023, 5:59am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/2 "2023-12-29T05:59:48Z")

</div>

Hi @Support-Luis , are you able to help with this item? Thanks in advance 🙏

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [January 2, 2024, 11:52am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/3 "2024-01-02T11:52:59Z")

</div>

Hey @ashley! The links are not valid could you share them again?

---

<div class="post-metadata">

**Author:** ![ashley](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/ashley/32/3842_2.png) [@ashley](https://forum.finsweet.com/u/ashley)\
**Post date:** [January 4, 2024, 11:51am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/4 "2024-01-04T11:51:07Z")

</div>

Here you go @Support-Luis , thanks!

> **[Enhance Skills with Executive Functioning Services | Applerouth](https://applerouth.webflow.io/services/executive-functioning)**
>
> Strengthen executive functioning skills with Applerouth. Our specialized services empower better organization, focus, and success in academics and beyond.

> **[Expert SSAT Test Prep Services | Applerouth](https://applerouth.webflow.io/services/test-prep/ssat)**
>
> Achieve success on the SSAT with Applerouth's expert test prep services. Prepare comprehensively for private school admissions.

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [January 4, 2024, 1:56pm UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/5 "2024-01-04T13:56:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ashley](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/ashley/32/3842_2.png) [@ashley](https://forum.finsweet.com/u/ashley)\
**Post date:** [January 5, 2024, 4:42am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/6 "2024-01-05T04:42:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ashley](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/ashley/32/3842_2.png) [@ashley](https://forum.finsweet.com/u/ashley)\
**Post date:** [January 5, 2024, 4:47am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/7 "2024-01-05T04:47:22Z")

</div>

@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?

```auto
<!-- [Finsweet Attributes] Accordion -->
<script>(()=>{var t="https://cdn.jsdelivr.net/npm/@finsweet/attributes-accordion@1/accordion.js",e=document.querySelector(`script[src="${t}"]`);e||(e=document.createElement("script"),e.async=!0,e.src=t,document.head.append(e));})();</script>

```

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [January 5, 2024, 11:12am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/8 "2024-01-05T11:12:16Z")

</div>

@ashley, yes, you can either add the script yourself or leave the embed to handle this.

I’ll wait for you to let me know what you do and I’ll jump in and check the active issue 💪

---

<div class="post-metadata">

**Author:** ![ashley](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/ashley/32/3842_2.png) [@ashley](https://forum.finsweet.com/u/ashley)\
**Post date:** [January 5, 2024, 11:39am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/9 "2024-01-05T11:39:25Z")

</div>

Thanks @Support-Luis!

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.

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [January 5, 2024, 12:09pm UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/10 "2024-01-05T12:09:15Z")

</div>

@ashley yes, the setup is correct, however, the class seems to not be added as expected. can you share a read-only link, please?

---

<div class="post-metadata">

**Author:** ![ashley](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/ashley/32/3842_2.png) [@ashley](https://forum.finsweet.com/u/ashley)\
**Post date:** [January 5, 2024, 12:41pm UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/12 "2024-01-05T12:41:18Z")

</div>

@Support-Luis can I send the read only link to you directly, instead of posting it in the forum?

The combo class is added in the Style Guide (which is set to draft).

The arrows are a component as they are used multiple times throughout the site.

Hopefully one of these settings hasn’t caused the functionality to break…!

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [January 5, 2024, 2:32pm UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/13 "2024-01-05T14:32:55Z")

</div>

@ashley yes! You can DM me the read-only link I’ll check the setup there and let you know if that is causing the issues! 💪

---

<div class="post-metadata">

**Author:** ![ashley](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/ashley/32/3842_2.png) [@ashley](https://forum.finsweet.com/u/ashley)\
**Post date:** [February 25, 2024, 3:45am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/14 "2024-02-25T03:45:58Z")

</div>

Thanks @Support-Luis , I’ve shared the project read-only link with you. I appreciate your help with this 🙏

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [February 26, 2024, 12:17pm UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/15 "2024-02-26T12:17:52Z")

</div>

Hey @ashley! I think I found the issue! The `fs-accordion-element = "arrow"` attribute is repeated on all accordions.

 ![Screen Shot 2024-02-26 at 13.14.00](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/4/41d10d32270c9791b5234670b8cc175a984ee397.jpeg)

Removing the attribute from the icon on the left seems to have worked for me as you can see in this quick video: [Loom | Free Screen & Video Recording Software | Loom](https://www.loom.com/share/93861d81b07b456cbe89d7802f02f5ab)

Can you test and let me know how it goes?

---

<div class="post-metadata">

**Author:** ![ashley](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/ashley/32/3842_2.png) [@ashley](https://forum.finsweet.com/u/ashley)\
**Post date:** [March 26, 2024, 3:57am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/18 "2024-03-26T03:57:04Z")

</div>

@Support-Luis Oops 🙈 yes that was my mistake! This is now working, thank you so much!

---

<div class="post-metadata">

**Author:** ![ashley](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/ashley/32/3842_2.png) [@ashley](https://forum.finsweet.com/u/ashley)\
**Post date:** [March 26, 2024, 3:57am UTC](https://forum.finsweet.com/t/accordion-arrow-active-state/2312/19 "2024-03-26T03:57:07Z")

</div>

Closed on March 26, 2024, 3:57am UTC


