UNPKG

@scania/tegel

Version:
45 lines (44 loc) 1.77 kB
import { h, Host } from "@stencil/core"; import inheritAriaAttributes from "../../../utils/inheritAriaAttributes"; export class TdsHeaderHamburger { render() { const inheritedButtonProps = Object.assign({}, inheritAriaAttributes(this.host)); return (h(Host, { key: 'eaac9c93fdbdc332c51c3dd0888eab60d95275d0' }, h("tds-header-item", { key: '6826512a3fec5c06de3acf983eea5af605beaf18' }, h("button", Object.assign({ key: 'f8b782c514f26198f19b67da4cfe2875554416ef' }, inheritedButtonProps, { "aria-label": this.tdsAriaLabel }), h("tds-icon", { key: '013f54329f729aec325b219e66b95fd4d537a68e', class: "icon", name: "burger", size: "20px" }))))); } static get is() { return "tds-header-hamburger"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["header-hamburger.scss"] }; } static get styleUrls() { return { "$": ["header-hamburger.css"] }; } static get properties() { return { "tdsAriaLabel": { "type": "string", "mutable": false, "complexType": { "original": "string", "resolved": "string | undefined", "references": {} }, "required": false, "optional": true, "docs": { "tags": [], "text": "Value to be used by the aria-label attribute" }, "getter": false, "setter": false, "reflect": false, "attribute": "tds-aria-label" } }; } static get elementRef() { return "host"; } }