Skip to content

Commit

Permalink
card cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
Verena Lechner authored and Verena Lechner committed Jan 23, 2023
1 parent 023dae7 commit cbdabf6
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions src/components/card/card.tsx
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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 (
Expand All @@ -56,8 +37,6 @@ export class Card {
: ""}

</div>


</div>

{`${this.list}` === "true"
Expand Down

0 comments on commit cbdabf6

Please sign in to comment.