@scania/tegel
Version:
Tegel Design System
27 lines (26 loc) • 1.11 kB
JavaScript
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 === 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' }))));
}
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"; }
}