Skip to content

Commit 86458b5

Browse files
authored
Merge pull request #28 from advanced-rest-client/feat/section-wrap
Feat/section wrap
2 parents 0f52511 + 4af8232 commit 86458b5

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@api-components/api-body-document",
33
"description": "A component to render HTTP method body documentation based on AMF model",
4-
"version": "4.4.2",
4+
"version": "4.4.3",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",

src/ApiBodyDocumentElement.js

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -553,25 +553,28 @@ export class ApiBodyDocumentElement extends AmfHelperMixin(LitElement) {
553553
};
554554
return html`
555555
<style>${this.styles}</style>
556-
<div
557-
class="section-title-area"
558-
@click="${this.toggle}"
559-
title="Toggle body details"
560-
?data-opened="${opened}"
561-
>
562-
<div class="heading3" role="heading" aria-level="${headerLevel}">Body</div>
563-
<div class="title-area-actions">
564-
<anypoint-button
565-
class="toggle-button"
566-
?compatibility="${compatibility}">
567-
${this.toggleActionLabel}
568-
<arc-icon class="${classMap(iconClass)}" icon="expandMore"></arc-icon>
569-
</anypoint-button>
556+
<section class="body">
557+
<div
558+
class="section-title-area body"
559+
@click="${this.toggle}"
560+
title="Toggle body details"
561+
?data-opened="${opened}"
562+
>
563+
<div class="heading3" role="heading" aria-level="${headerLevel}">Body</div>
564+
<div class="title-area-actions" data-toggle="body">
565+
<anypoint-button
566+
class="toggle-button"
567+
?compatibility="${compatibility}"
568+
data-toggle="body">
569+
${this.toggleActionLabel}
570+
<arc-icon class="${classMap(iconClass)}" icon="expandMore"></arc-icon>
571+
</anypoint-button>
572+
</div>
570573
</div>
571-
</div>
572-
573-
<anypoint-collapse .opened="${opened}">
574-
${_isAnyType ? this._anyTypeTemplate() : this._typedTemplate()}
575-
</anypoint-collapse>`;
574+
575+
<anypoint-collapse .opened="${opened}">
576+
${_isAnyType ? this._anyTypeTemplate() : this._typedTemplate()}
577+
</anypoint-collapse>
578+
</section>`;
576579
}
577580
}

0 commit comments

Comments
 (0)