UNPKG

@scania/tegel

Version:
21 lines (17 loc) 1.25 kB
import { r as registerInstance, h, H as Host, a as getElement } from './index-9xxNGlso.js'; const headerBrandSymbolCss = () => `:host tds-header-item{display:none}:host tds-header-item ::slotted(*){background-image:var(--tds-background-image-scania-symbol-svg-local), var(--tds-background-image-scania-symbol-svg);background-size:30px auto;background-position:center;background-repeat:no-repeat}@media (min-width: 992px){:host tds-header-item{display:block}}`; const TdsHeaderBrandSymbol = class { constructor(hostRef) { registerInstance(this, hostRef); } render() { const aTag = this.host.querySelector('a'); if (!(aTag === null || aTag === void 0 ? void 0 : aTag.hasAttribute('aria-label'))) { console.warn('Tegel Header Brand Symbol component: missing aria-label attribute for <a> tag inside slot'); } return (h(Host, { key: 'fc99860c883e83bbf74918c166aef86ad4940b44' }, h("tds-header-item", { key: '064742d9efd8b8c313d70fee663be8455602def4' }, h("slot", { key: 'a7aabeccfd3a93e3dc29d2d0ee6bbefa2c94d236' })))); } get host() { return getElement(this); } }; TdsHeaderBrandSymbol.style = headerBrandSymbolCss(); export { TdsHeaderBrandSymbol as tds_header_brand_symbol };