diff --git a/change/@microsoft-fast-foundation-422cca6d-1c45-47a9-aa69-517df2d15393.json b/change/@microsoft-fast-foundation-422cca6d-1c45-47a9-aa69-517df2d15393.json new file mode 100644 index 00000000000..50d721010fc --- /dev/null +++ b/change/@microsoft-fast-foundation-422cca6d-1c45-47a9-aa69-517df2d15393.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Foundation: Update Accordion template element naming (https://github.com/microsoft/fast/pull/6796)", + "packageName": "@microsoft/fast-foundation", + "email": "47367562+bheston@users.noreply.github.com", + "dependentChangeType": "prerelease" +} diff --git a/packages/web-components/fast-foundation/docs/api-report.md b/packages/web-components/fast-foundation/docs/api-report.md index ebe96754c7a..77b70a95936 100644 --- a/packages/web-components/fast-foundation/docs/api-report.md +++ b/packages/web-components/fast-foundation/docs/api-report.md @@ -31,8 +31,7 @@ export type AccordionExpandMode = ValuesOf; // @public export type AccordionItemOptions = StartEndOptions & { - expandedIcon?: StaticallyComposableHTML; - collapsedIcon?: StaticallyComposableHTML; + expandCollapseIcon?: StaticallyComposableHTML; }; // @public diff --git a/packages/web-components/fast-foundation/src/accordion-item/accordion-item.template.ts b/packages/web-components/fast-foundation/src/accordion-item/accordion-item.template.ts index 77ecfe7fa3f..453d72a5c5b 100644 --- a/packages/web-components/fast-foundation/src/accordion-item/accordion-item.template.ts +++ b/packages/web-components/fast-foundation/src/accordion-item/accordion-item.template.ts @@ -31,20 +31,20 @@ export function accordionItemTemplate( + ${ + /* The start slot is after the button for an improved screen reader experience */ "" + } ${startSlotTemplate(options)} ${endSlotTemplate(options)} -