@@ -50,12 +50,12 @@ class SectionToggle {
5050 if ( defaultVisible ) {
5151 // Show the section initially
5252 container . classList . remove ( 'hidden' ) ;
53- chevron . style . transform = 'rotate(180deg )' ;
53+ chevron . style . transform = 'rotate(0deg )' ;
5454 buttonText . textContent = 'Hide' ;
5555 } else {
5656 // Hide the section initially
5757 container . classList . add ( 'hidden' ) ;
58- chevron . style . transform = 'rotate(0deg )' ;
58+ chevron . style . transform = 'rotate(-90deg )' ;
5959 buttonText . textContent = 'Show' ;
6060 }
6161 }
@@ -80,7 +80,7 @@ class SectionToggle {
8080
8181 const { container, chevron, buttonText } = sectionData ;
8282 container . classList . remove ( 'hidden' ) ;
83- chevron . style . transform = 'rotate(180deg )' ;
83+ chevron . style . transform = 'rotate(0deg )' ;
8484 buttonText . textContent = 'Hide' ;
8585 }
8686
@@ -90,7 +90,7 @@ class SectionToggle {
9090
9191 const { container, chevron, buttonText } = sectionData ;
9292 container . classList . add ( 'hidden' ) ;
93- chevron . style . transform = 'rotate(0deg )' ;
93+ chevron . style . transform = 'rotate(-90deg )' ;
9494 buttonText . textContent = 'Show' ;
9595 }
9696
0 commit comments