@scania/tegel
Version:
Tegel Design System
22 lines (18 loc) • 1.26 kB
JavaScript
import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.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) {
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 (h(Host, { key: 'c7b01660c7757298ff64d90b19df0cc45ebb62fc' }, h("tds-header-item", { key: '2e5f25c5b22a4779146ad6b8c76a8ac625d616dc' }, h("slot", { key: '110c74312136176f396af1010731a886d2d986aa' }))));
}
get host() { return getElement(this); }
};
TdsHeaderBrandSymbol.style = TdsHeaderBrandSymbolStyle0;
export { TdsHeaderBrandSymbol as tds_header_brand_symbol };