Skip to content

Commit ddf06fa

Browse files
committed
fixed typo in css-part
1 parent 843c922 commit ddf06fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/templates/endpoint-template.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ function endpointBodyTemplate(path) {
8888

8989
const codeSampleTabPanel = path.xCodeSamples ? codeSamplesTemplate(path.xCodeSamples) : '';
9090
return html`
91-
<div part="section-end-point-body" class='endpoint-body ${path.method} ${path.deprecated ? 'deprecated' : ''}'>
91+
<div part="section-endpoint-body" class='endpoint-body ${path.method} ${path.deprecated ? 'deprecated' : ''}'>
9292
<div class="summary">
9393
${path.summary
94-
? html`<div class="title" part="section-end-point-body-title">${path.summary}<div>`
94+
? html`<div class="title" part="section-endpoint-body-title">${path.summary}<div>`
9595
: path.shortSummary !== path.description
96-
? html`<div class="title" part="section-end-point-body-title">${path.shortSummary}</div>`
96+
? html`<div class="title" part="section-endpoint-body-title">${path.shortSummary}</div>`
9797
: ''
9898
}
9999
${path.xBadges && path.xBadges?.length > 0
@@ -108,7 +108,7 @@ function endpointBodyTemplate(path) {
108108
: ''
109109
}
110110
111-
${path.description ? html`<div part="section-end-point-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>` : ''}
112112
<slot name="${path.elementId}"></slot>
113113
${pathSecurityTemplate.call(this, path.security)}
114114
${codeSampleTabPanel}
@@ -203,7 +203,7 @@ export default function endpointTemplate(showExpandCollapse = true, showTags = t
203203
}
204204
return true;
205205
}).map((path) => html`
206-
<section part="section-end-point" id='${path.elementId}' class='m-endpoint regular-font ${path.method} ${pathsExpanded || path.expanded ? 'expanded' : 'collapsed'}'>
206+
<section part="section-endpoint" id='${path.elementId}' class='m-endpoint regular-font ${path.method} ${pathsExpanded || path.expanded ? 'expanded' : 'collapsed'}'>
207207
${endpointHeadTemplate.call(this, path, pathsExpanded)}
208208
${pathsExpanded || path.expanded ? endpointBodyTemplate.call(this, path) : ''}
209209
</section>`)

0 commit comments

Comments
 (0)