UNPKG

@scania/tegel

Version:
27 lines (26 loc) 1.06 kB
import { h, Host } from "@stencil/core"; /** * @slot <default> - <b>Unnamed slot.</b> For a link. When using an <a> tag, use the aria-label attribute for accessibility. */ export class TdsHeaderBrandSymbol { 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' })))); } static get is() { return "tds-header-brand-symbol"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["header-brand-symbol.scss"] }; } static get styleUrls() { return { "$": ["header-brand-symbol.css"] }; } static get elementRef() { return "host"; } }