Compare commits

..

No commits in common. "main" and "1.1.0" have entirely different histories.
main ... 1.1.0

2 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@tp/tp-tabs", "name": "@tp/tp-tabs",
"version": "1.3.0", "version": "1.1.0",
"description": "", "description": "",
"main": "tp-tabs.js", "main": "tp-tabs.js",
"scripts": { "scripts": {

View File

@ -17,13 +17,11 @@ 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;
} }
@ -43,7 +41,7 @@ class TpTabs extends LitElement {
render() { render() {
return html` return html`
<div class="tabs" part="wrap" @click="${this.selectTab}"> <div class="tabs" @click="${this.selectTab}">
<slot></slot> <slot></slot>
</div> </div>
`; `;