Skip to content

Commit

Permalink
fix(card): remove clickCard prop (#949)
Browse files Browse the repository at this point in the history
Co-authored-by: Arturo Castillo Delgado <[email protected]>
  • Loading branch information
felix-ico and Arturo Castillo Delgado authored Apr 4, 2022
1 parent c85f001 commit ecb7cae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
3 changes: 0 additions & 3 deletions packages/components/src/components/card/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ export class Card {
/** (optional) Injected CSS styles */
@Prop() styles?: string;

@Prop() clickCard?: any;

render() {
const Tag = !!this.to ? 'a' : 'div';

Expand All @@ -40,7 +38,6 @@ export class Card {
<Tag
class={this.getCssClassMap()}
part={classNames('base', !!this.to && 'interactive')}
onClick={this.clickCard}
{...(!this.to ? { role: 'group' } : {})}
{...(!!this.to ? { href: this.to } : {})}
{...(!!this.target ? { target: this.target } : {})}
Expand Down
15 changes: 7 additions & 8 deletions packages/components/src/components/card/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@

## Properties

| Property | Attribute | Description | Type | Default |
| ----------- | ------------ | ------------------------------ | -------- | ----------- |
| `clickCard` | `click-card` | | `any` | `undefined` |
| `label` | `label` | (optional) Label of the card | `string` | `''` |
| `rel` | `rel` | (optional) Link card rel | `string` | `''` |
| `styles` | `styles` | (optional) Injected CSS styles | `string` | `undefined` |
| `target` | `target` | (optional) Link card target | `string` | `'_self'` |
| `to` | `to` | (optional) Link card | `string` | `''` |
| Property | Attribute | Description | Type | Default |
| -------- | --------- | ------------------------------ | -------- | ----------- |
| `label` | `label` | (optional) Label of the card | `string` | `''` |
| `rel` | `rel` | (optional) Link card rel | `string` | `''` |
| `styles` | `styles` | (optional) Injected CSS styles | `string` | `undefined` |
| `target` | `target` | (optional) Link card target | `string` | `'_self'` |
| `to` | `to` | (optional) Link card | `string` | `''` |


## Shadow Parts
Expand Down

0 comments on commit ecb7cae

Please sign in to comment.