From cbdabf616381a15897d72381aea5b232d5a8a646 Mon Sep 17 00:00:00 2001 From: Verena Lechner Date: Mon, 23 Jan 2023 16:30:18 +0100 Subject: [PATCH] card cleaned up --- src/components/card/card.tsx | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/components/card/card.tsx b/src/components/card/card.tsx index afc1c581d1..c85040701b 100644 --- a/src/components/card/card.tsx +++ b/src/components/card/card.tsx @@ -1,4 +1,4 @@ -import { Component, Element, Prop, h, Host } from '@stencil/core'; +import { Component, Prop, h, Host } from '@stencil/core'; @Component({ tag: 'ifx-card', @@ -14,25 +14,6 @@ export class Card { @Prop() button: boolean; @Prop() list: boolean; - @Element() hostElement: HTMLElement; - private action: HTMLElement; - - componentDidLoad() { - - const actionSlot = this.hostElement.querySelector( - '[slot="action"]' - ) as HTMLElement; - - if (actionSlot && actionSlot.tagName.toUpperCase() === 'IFX-BUTTON') { - this.action = actionSlot.shadowRoot.querySelector('button'); - } else { - this.action = actionSlot; - } - console.log("button: ", this.button, " - slot name=action: ", this.action); - - - // this.setTriggerAttributes(); - } render() { return ( @@ -56,8 +37,6 @@ export class Card { : ""} - - {`${this.list}` === "true"