Skip to content

Commit eb2b92f

Browse files
committed
feat: wrap component in section tag with body class
1 parent 0f52511 commit eb2b92f

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

src/ApiBodyDocumentElement.js

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -553,25 +553,27 @@ 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+
${this.toggleActionLabel}
569+
<arc-icon class="${classMap(iconClass)}" icon="expandMore"></arc-icon>
570+
</anypoint-button>
571+
</div>
570572
</div>
571-
</div>
572-
573-
<anypoint-collapse .opened="${opened}">
574-
${_isAnyType ? this._anyTypeTemplate() : this._typedTemplate()}
575-
</anypoint-collapse>`;
573+
574+
<anypoint-collapse .opened="${opened}">
575+
${_isAnyType ? this._anyTypeTemplate() : this._typedTemplate()}
576+
</anypoint-collapse>
577+
</section>`;
576578
}
577579
}

0 commit comments

Comments
 (0)