egroupware_official/api/js/etemplate/Layout/Et2Tabs/Et2Tab.ts
Nathan Gray e323cd1d79
Feature/shoelace 2.4 upgrade (#135)
Update shoelace to 2.9.0
2023-09-13 11:55:33 -06:00

39 lines
727 B
TypeScript

import {Et2Widget} from "../../Et2Widget/Et2Widget";
import {SlTab} from "@shoelace-style/shoelace";
import shoelace from "../../Styles/shoelace";
import {css} from "lit";
export class Et2Tab extends Et2Widget(SlTab)
{
static get styles()
{
return [
...super.styles,
...shoelace,
css`
.tab {
font-size: var(--sl-size-x-small);
}
.tab.tab--active:not(.tab--disabled) {color:var(--sl-color-gray-800)}
.tab:hover:not(.tab--disabled) {color:var(--sl-color-gray-800)}
`
];
}
static get properties()
{
return {
...super.properties,
hidden: {type: Boolean, reflect: true}
}
}
constructor()
{
super();
this.hidden = false;
}
}
customElements.define("et2-tab", Et2Tab);