web: accept header as slot in PageHeader

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-14 15:23:20 +01:00
parent 210d4c5058
commit 44cfd7e5b0
1 changed files with 4 additions and 1 deletions

View File

@ -133,7 +133,10 @@ export class PageHeader extends LitElement {
</button> </button>
<section class="pf-c-page__main-section pf-m-light"> <section class="pf-c-page__main-section pf-m-light">
<div class="pf-c-content"> <div class="pf-c-content">
<h1>${this.renderIcon()} ${this.header}</h1> <h1>
${this.renderIcon()}
<slot name="header"> ${this.header} </slot>
</h1>
${this.description ? html`<p>${this.description}</p>` : html``} ${this.description ? html`<p>${this.description}</p>` : html``}
</div> </div>
</section> </section>