Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
783795aa3e | |||
99468efa3f |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tp/tp-tabs",
|
||||
"version": "1.1.0",
|
||||
"version": "1.3.0",
|
||||
"description": "",
|
||||
"main": "tp-tabs.js",
|
||||
"scripts": {
|
||||
|
@ -17,11 +17,13 @@ class TpTabs extends LitElement {
|
||||
:host([orientation="vertical"]) .tabs {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.tab {
|
||||
|
||||
slot::slotted(.tab) {
|
||||
cursor: pointer;
|
||||
padding: 8px;
|
||||
}
|
||||
@ -41,7 +43,7 @@ class TpTabs extends LitElement {
|
||||
|
||||
render() {
|
||||
return html`
|
||||
<div class="tabs" @click="${this.selectTab}">
|
||||
<div class="tabs" part="wrap" @click="${this.selectTab}">
|
||||
<slot></slot>
|
||||
</div>
|
||||
`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user