Skip to content

Commit

Permalink
remove deprecated item slot on accordion (#5945)
Browse files Browse the repository at this point in the history
* remove deprecated item slot on accordion

* Change files
  • Loading branch information
chrisdholt authored and EisenbergEffect committed May 31, 2022
1 parent b623830 commit 4685bc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "major",
"comment": "remove deprecated item slot name on accordion as it is the default slot",
"packageName": "@microsoft/fast-foundation",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ import type { Accordion } from "./accordion.js";
export const accordionTemplate: FoundationElementTemplate<ViewTemplate<Accordion>> = (
context,
definition
) => /* TODO: deprecate slot name `item` to only support default slot https://github.com/microsoft/fast/issues/5515 */ html`
) => html`
<template>
<slot ${slotted({ property: "accordionItems", filter: elements() })}></slot>
<slot name="item" part="item" ${slotted("accordionItems")}></slot>
</template>
`;

0 comments on commit 4685bc4

Please sign in to comment.