@@ -76,22 +76,6 @@ class HeadingFolding {
7676 button . setAttribute ( 'aria-expanded' , 'true' ) ;
7777 button . setAttribute ( 'aria-controls' , content . id ) ;
7878 button . setAttribute ( 'aria-label' , 'Collapse section' ) ;
79- // Reuse the bundled arrow_dropdown.svg chevron geometry inline so the
80- // control stays theme-colored and self-contained in standalone exports.
81- let icon = document . createElementNS ( 'http://www.w3.org/2000/svg' , 'svg' ) ;
82- icon . setAttribute ( 'class' , 'vx-heading-fold-icon' ) ;
83- icon . setAttribute ( 'viewBox' , '0 0 48 48' ) ;
84- icon . setAttribute ( 'aria-hidden' , 'true' ) ;
85- icon . setAttribute ( 'focusable' , 'false' ) ;
86- let iconPath = document . createElementNS ( 'http://www.w3.org/2000/svg' , 'path' ) ;
87- iconPath . setAttribute ( 'd' , 'M36 18L24 30L12 18' ) ;
88- iconPath . setAttribute ( 'fill' , 'none' ) ;
89- iconPath . setAttribute ( 'stroke' , 'currentColor' ) ;
90- iconPath . setAttribute ( 'stroke-width' , '4' ) ;
91- iconPath . setAttribute ( 'stroke-linecap' , 'round' ) ;
92- iconPath . setAttribute ( 'stroke-linejoin' , 'round' ) ;
93- icon . appendChild ( iconPath ) ;
94- button . appendChild ( icon ) ;
9579 node . appendChild ( button ) ;
9680
9781 stack . push ( { level : level , content : content } ) ;
@@ -178,7 +162,6 @@ class HeadingFolding {
178162 p_content . hidden = ! p_expanded ;
179163 p_button . setAttribute ( 'aria-expanded' , p_expanded ? 'true' : 'false' ) ;
180164 p_button . setAttribute ( 'aria-label' , p_expanded ? 'Collapse section' : 'Expand section' ) ;
181- // The CSS rotates the single down-chevron SVG when aria-expanded is false.
182165 }
183166
184167 expandHiddenAncestors ( p_node ) {
0 commit comments