UNPKG

@scania/tegel

Version:
29 lines (28 loc) 1.02 kB
import { h, Host } from "@stencil/core"; /** * @slot <default> - <b>Unnamed slot.</b> For slotting a link, button, or similar. */ export class TdsFooterItem { constructor() { this.parentIsTopPart = false; } connectedCallback() { this.parentIsTopPart = this.host.closest('tds-footer-group').parentElement.slot === 'top'; } render() { return (h(Host, { key: '845de26cafaefdf0e5ceabe57ba7bbce51eed038', role: "listitem" }, h("div", { key: 'de201fb4965740a2c0bebbea790651487e082637', class: `${this.parentIsTopPart ? 'top-part-child' : ''}` }, h("slot", { key: 'eca7ee20a2a4b1e9e9947e6566046c9031198569' })))); } static get is() { return "tds-footer-item"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["footer-item.scss"] }; } static get styleUrls() { return { "$": ["footer-item.css"] }; } static get elementRef() { return "host"; } }