Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
783795aa3e | |||
99468efa3f |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tp/tp-tabs",
|
"name": "@tp/tp-tabs",
|
||||||
"version": "1.1.0",
|
"version": "1.3.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "tp-tabs.js",
|
"main": "tp-tabs.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
@ -41,7 +43,7 @@ class TpTabs extends LitElement {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return html`
|
return html`
|
||||||
<div class="tabs" @click="${this.selectTab}">
|
<div class="tabs" part="wrap" @click="${this.selectTab}">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user