From 1ce3fbc453dd6aeddbc3a29f6266b11a40155d88 Mon Sep 17 00:00:00 2001 From: pk Date: Sat, 2 Sep 2023 00:18:57 +0200 Subject: [PATCH] Fixes. --- tp-tabs.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tp-tabs.js b/tp-tabs.js index 15ac1a7..d0570f4 100644 --- a/tp-tabs.js +++ b/tp-tabs.js @@ -8,14 +8,12 @@ import { closest } from '@tp/helpers'; import { LitElement, html, css } from 'lit-element'; class TpTabs extends LitElement { - static get properties() { - return { - orientation: { type: String, reflect: true } - }; - } - static get styles() { return css` + :host { + display: block; + } + :host([orientation="vertical"]) .tabs { flex-direction: column; } @@ -30,6 +28,12 @@ class TpTabs extends LitElement { `; } + static get properties() { + return { + orientation: { type: String, reflect: true } + }; + } + constructor() { super(); this.orientation = 'horizontal';