Fixes.
This commit is contained in:
parent
8bbd792fdd
commit
1ce3fbc453
16
tp-tabs.js
16
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';
|
||||
|
Loading…
Reference in New Issue
Block a user