UNPKG

@scania/tegel

Version:
1 lines 1.07 kB
import{r as e,h as t,H as s,g as a}from"./p-2049fab2.js";import{i as c}from"./p-0bd4c19c.js";import"./p-3fe9cbbf.js";const o=class{constructor(t){e(this,t),this.tdsAriaLabel=void 0}connectedCallback(){this.tdsAriaLabel||console.warn("Tegel Header Hamburger component: missing tdsAriaLabel prop")}render(){const e=Object.assign({},c(this.host));return t(s,{key:"5ea87f94483c167f580c26c7914a22cb6caea885"},t("tds-header-item",{key:"f2792ffbd859c263165b95b7d2cd9d1c76509c8f"},t("button",Object.assign({key:"d1c44fcf5b7bb9c3cefbbbf09e3217704770f761"},e,{"aria-label":this.tdsAriaLabel}),t("tds-icon",{key:"62ec94113557c7032a3145ad4b6ac22d39d6453c",class:"icon",name:"burger",size:"20px"}))))}get host(){return a(this)}};o.style=":host{color:var(--tds-white)}:host tds-header-item{display:block}:host .icon{position:relative;margin-left:-6px;left:3px;transition:background 0.2s ease-in-out, color 0.2s ease-in-out}@media screen and (min-width: 992px){:host tds-header-item{display:none}:host([persistent]) tds-header-item{display:block}}";export{o as tds_header_hamburger}