@@ -46,7 +46,7 @@ function onExpandCollapseAll(e, action = 'expand-all') {
46
46
/* eslint-disable indent */
47
47
function endpointHeadTemplate ( path , pathsExpanded = false ) {
48
48
return html `
49
- < summary @click ="${ ( e ) => { toggleExpand . call ( this , path , e ) ; } } " part ="section-endpoint-head " class ='endpoint-head ${ path . method } ${ path . deprecated ? 'deprecated' : '' } ${ pathsExpanded || path . expanded ? 'expanded' : 'collapsed' } '>
49
+ < summary @click ="${ ( e ) => { toggleExpand . call ( this , path , e ) ; } } " part ="section-endpoint-head- ${ path . expanded ? 'expanded' : 'collapsed' } " class ='endpoint-head ${ path . method } ${ path . deprecated ? 'deprecated' : '' } ${ pathsExpanded || path . expanded ? 'expanded' : 'collapsed' } '>
50
50
< div part ="section-endpoint-head-method " class ="method ${ path . method } ${ path . deprecated ? 'deprecated' : '' } "> ${ path . method } </ div >
51
51
< div part ="section-endpoint-head-path " class ="path ${ path . deprecated ? 'deprecated' : '' } ">
52
52
${ path . path }
@@ -88,7 +88,7 @@ function endpointBodyTemplate(path) {
88
88
89
89
const codeSampleTabPanel = path . xCodeSamples ? codeSamplesTemplate ( path . xCodeSamples ) : '' ;
90
90
return html `
91
- < div part ="section-endpoint-body " class ='endpoint-body ${ path . method } ${ path . deprecated ? 'deprecated' : '' } '>
91
+ < div part ="section-endpoint-body- ${ path . expanded ? 'expanded' : 'collapsed' } " class ='endpoint-body ${ path . method } ${ path . deprecated ? 'deprecated' : '' } '>
92
92
< div class ="summary ">
93
93
${ path . summary
94
94
? html `< div class ="title " part ="section-endpoint-body-title "> ${ path . summary } < div > `
@@ -108,7 +108,7 @@ function endpointBodyTemplate(path) {
108
108
: ''
109
109
}
110
110
111
- ${ path . description ? html `< div part ="section-endpoint-body-description " class ="m-markdown "> ${ unsafeHTML ( marked ( path . description ) ) } </ div > ` : '' }
111
+ ${ path . description ? html `< div part ="section-endpoint-body-description " class ="m-markdown "> ${ unsafeHTML ( marked ( path . description ) ) } </ div > ` : '' }
112
112
< slot name ="${ path . elementId } "> </ slot >
113
113
${ pathSecurityTemplate . call ( this , path . security ) }
114
114
${ codeSampleTabPanel }
0 commit comments