Skip to content

Commit 2284f1c

Browse files
committed
Fix zn-tabs header
1 parent 7282aaf commit 2284f1c

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

docs/pages/components/tabs.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ layout: component
66
---
77

88
```html:preview
9-
<zn-tabs></zn-tabs>
9+
10+
<zn-tabs flush="" caption="Billing" default-uri="" header="" active="tab-7ee7c65c-349267" split-min="60"
11+
primary-caption="Navigation" secondary-caption="Content" store-ttl="0" master-id="349267">
12+
13+
14+
15+
</zn-tabs>
1016
```
1117

1218
## Examples

src/components/panel/panel.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ export default class ZnPanel extends ZincElement {
8080
description="${this.description}">
8181
${hasActionSlot ? html`
8282
<slot name="actions" slot="actions" class="panel__header__actions"></slot>` : null}
83-
</zn-header>
84-
</div>` : null}
83+
</zn-header>` : null}
8584
8685
<div class="panel__body">
8786
<slot></slot>

src/components/sp/sp.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
padding: var(--zn-sp-padding);
1616
gap: var(--zn-sp-gap);
1717
width: 100%;
18-
max-width: var(--zn-container-hd);
18+
//max-width: var(--zn-container-hd); don't worry about max width just yet
1919
margin: 0 auto;
2020

2121
&--divide.sp--no-gap {

src/components/tabs/tabs.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ export default class ZnTabs extends ZincElement {
4242
@property({attribute: 'master-id', reflect: true}) masterId: string;
4343
@property({attribute: 'default-uri', type: String, reflect: true}) defaultUri = '';
4444

45-
@property({attribute: 'caption', type: String, reflect: true}) caption = '';
45+
@property() caption: string;
46+
47+
@property() description: string;
48+
4649
@property({attribute: 'header', type: String, reflect: true}) header = '';
4750

4851
@property({attribute: 'active', type: String, reflect: true}) _current = '';

src/components/tabs/tabs.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ h1, h2 {
9393
#header:not(:empty) {
9494
display: flex;
9595
align-items: center;
96-
padding: var(--zn-spacing-medium) var(--zn-spacing-medium) 0;
96+
padding: var(--zn-spacing-medium);
9797
gap: var(--zn-spacing-medium);
9898

9999
#actions ::slotted(*:not(.zn-tb-active)) {

0 commit comments

Comments
 (0)