diff --git a/.changeset/quick-jeans-allow.md b/.changeset/quick-jeans-allow.md new file mode 100644 index 00000000000..5a4d0371205 --- /dev/null +++ b/.changeset/quick-jeans-allow.md @@ -0,0 +1,5 @@ +--- +'@talend/design-system': patch +--- + +fix(TUX-1228): allow more props to be passed to each CollapsiblePanel action diff --git a/packages/design-system/src/components/Accordion/Primitive/CollapsiblePanelHeader.tsx b/packages/design-system/src/components/Accordion/Primitive/CollapsiblePanelHeader.tsx index 607c5e8f68d..d02a5359b3c 100644 --- a/packages/design-system/src/components/Accordion/Primitive/CollapsiblePanelHeader.tsx +++ b/packages/design-system/src/components/Accordion/Primitive/CollapsiblePanelHeader.tsx @@ -119,10 +119,11 @@ const CollapsiblePanelHeader = forwardRef( {actionItem.tooltip} diff --git a/packages/design-system/src/components/Accordion/Primitive/types.ts b/packages/design-system/src/components/Accordion/Primitive/types.ts index 89b06737dfa..62929e3b488 100644 --- a/packages/design-system/src/components/Accordion/Primitive/types.ts +++ b/packages/design-system/src/components/Accordion/Primitive/types.ts @@ -1,4 +1,6 @@ -export type PanelHeaderAction = { +import { ButtonIconType } from 'src/components/ButtonIcon/variations/ButtonIcon'; + +export type PanelHeaderAction = ButtonIconType & { icon: string; tooltip: string; callback: () => unknown;