UNPKG

@scania/tegel

Version:
26 lines (20 loc) 1.32 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-ca8040ad.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 TdsHeaderBrandSymbolStyle0 = headerBrandSymbolCss; const TdsHeaderBrandSymbol = class { constructor(hostRef) { index.registerInstance(this, hostRef); } render() { const aTag = this.host.querySelector('a'); if (!aTag.hasAttribute('aria-label')) { console.warn('Tegel Header Brand Symbol component: missing aria-label attribute for <a> tag inside slot'); } return (index.h(index.Host, { key: 'c7b01660c7757298ff64d90b19df0cc45ebb62fc' }, index.h("tds-header-item", { key: '2e5f25c5b22a4779146ad6b8c76a8ac625d616dc' }, index.h("slot", { key: '110c74312136176f396af1010731a886d2d986aa' })))); } get host() { return index.getElement(this); } }; TdsHeaderBrandSymbol.style = TdsHeaderBrandSymbolStyle0; exports.tds_header_brand_symbol = TdsHeaderBrandSymbol;