Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
feat!: BREAKING CHANGE rename secondary-action slot
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Driscoll <driskull@users.noreply.github.com>
  • Loading branch information
pr3tori4n and driskull committed Jan 6, 2020
1 parent e1af1d6 commit 4569a57
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { CSS, ICONS } from "./resources";
import { ICON_TYPES } from "../calcite-pick-list/resources";

/**
* @slot secondaryAction - A slot intended for adding a `calcite-action` or `calcite-button` to the right side of the card.
* @slot secondary-action - A slot intended for adding a `calcite-action` or `calcite-button` to the right side of the card.
* This is placed at the end of the item.
*/
@Component({
Expand Down Expand Up @@ -218,7 +218,7 @@ export class CalcitePickListItem {
</div>
</label>
<div class={CSS.action}>
<slot name="secondaryAction" />
<slot name="secondary-action" />
</div>
</Host>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const createAttributes: () => Attributes = () => [
}
];

const action = `<calcite-action slot="secondaryAction" label="click-me" onClick="console.log('clicked');" appearance="clear">
const action = `<calcite-action slot="secondary-action" label="click-me" onClick="console.log('clicked');" appearance="clear">
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<circle cx="7" cy="7" r="7" fill="#f689d8" />
</svg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CSS } from "../calcite-pick-list-item/resources";
import { ICONS } from "./resources";

/**
* @slot secondaryAction - A slot intended for adding a `calcite-action` or `calcite-button`. This is placed at the end of the item.
* @slot secondary-action - A slot intended for adding a `calcite-action` or `calcite-button`. This is placed at the end of the item.
*/
@Component({
tag: "calcite-value-list-item",
Expand Down Expand Up @@ -154,7 +154,7 @@ export class CalciteValueListItem {
onCalciteListItemChange={this.handleSelectChange}
value={this.value}
>
<slot name="secondaryAction" slot="secondaryAction" />
<slot name="secondary-action" slot="secondary-action" />
</calcite-pick-list-item>
</Host>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const createAttributes: () => Attributes = () => [
}
];

const action = `<calcite-action slot="secondaryAction" label="click-me" onClick="console.log('clicked');" appearance="clear">
const action = `<calcite-action slot="secondary-action" label="click-me" onClick="console.log('clicked');" appearance="clear">
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<circle cx="7" cy="7" r="7" fill="#f689d8" />
</svg>
Expand Down

0 comments on commit 4569a57

Please sign in to comment.