First open by default doesn’t have the class ‘active’
-
I am trying to add the ::after psuedo class to ‘active’ items to have an upward facing arrow.
I have the accordion set to have the first item open by default. But initially it doesn’t have the class ‘active’. Only once you click to close it and then open it again does it gain the class ‘active’.
Therefore, the upward arrow doesn’t show until closed and opened again, which isn’t ideal.
Any help solving this would be greatly appreciated!
Many thanks,
Richard
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘First open by default doesn’t have the class ‘active’’ is closed to new replies.