Compare commits
2 Commits
c16d2020ca
...
99468efa3f
Author | SHA1 | Date | |
---|---|---|---|
99468efa3f | |||
65f1e6808e |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tp/tp-tabs",
|
"name": "@tp/tp-tabs",
|
||||||
"version": "1.0.1",
|
"version": "1.2.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "tp-tabs.js",
|
"main": "tp-tabs.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -13,7 +13,7 @@
|
|||||||
"author": "trading_peter",
|
"author": "trading_peter",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lit": "^2.2.0",
|
"lit": "^2.8.0",
|
||||||
"@tp/helpers": "^1.0.0"
|
"@tp/helpers": "^2.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ This program is available under Apache License Version 2.0
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { closest } from '@tp/helpers';
|
import { closest } from '@tp/helpers';
|
||||||
import { LitElement, html, css } from 'lit-element';
|
import { LitElement, html, css } from 'lit';
|
||||||
|
|
||||||
class TpTabs extends LitElement {
|
class TpTabs extends LitElement {
|
||||||
static get styles() {
|
static get styles() {
|
||||||
@ -17,11 +17,13 @@ class TpTabs extends LitElement {
|
|||||||
:host([orientation="vertical"]) .tabs {
|
:host([orientation="vertical"]) .tabs {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabs {
|
.tabs {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
.tab {
|
|
||||||
|
slot::slotted(.tab) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user