added clear-header attribute for body layout

clear-header removes background color and border from the header
This commit is contained in:
Jesper Møller Jensen
2023-06-02 18:45:50 +12:00
parent 5a75546af7
commit 1b4669578a
2 changed files with 7 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ export class UmbBodyLayoutElement extends LitElement {
* Renders a headline in the header.
* @public
* @type {string}
* @attr
* @attr {string} clear-header - renders the header without background and borders.
* @default ''
*/
@property()
@@ -120,6 +120,11 @@ export class UmbBodyLayoutElement extends LitElement {
box-sizing: border-box;
}
:host([clear-header]) #header {
background-color: transparent;
border-color: transparent;
}
#headline {
display: block;
margin: 0 var(--uui-size-layout-1);

View File

@@ -35,7 +35,7 @@ export class UmbUserCollectionElement extends UmbLitElement {
render() {
return html`
<umb-body-layout>
<umb-body-layout clear-header>
<umb-user-collection-header slot="header"></umb-user-collection-header>
<umb-router-slot id="router-slot" .routes=${this._routes}></umb-router-slot>
</umb-body-layout>