Skip to content

Commit

Permalink
fix(TUX-1228): allow more props to be passed to each CollapsiblePanel…
Browse files Browse the repository at this point in the history
… action (#5215)
  • Loading branch information
andrewmoreno authored Mar 1, 2024
1 parent 56e1ddb commit eba9ca8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-jeans-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/design-system': patch
---

fix(TUX-1228): allow more props to be passed to each CollapsiblePanel action
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@ const CollapsiblePanelHeader = forwardRef(
<ButtonIcon
key={`action-${index}`}
size={buttonIconSize}
icon={actionItem.icon}
onClick={actionItem.callback}
data-test={`action.button.${index}`}
data-testid={`action.button.${index}`}
data-feature={actionItem.dataFeature}
{...actionItem}
>
{actionItem.tooltip}
</ButtonIcon>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export type PanelHeaderAction = {
import { ButtonIconType } from 'src/components/ButtonIcon/variations/ButtonIcon';

export type PanelHeaderAction = ButtonIconType<any> & {
icon: string;
tooltip: string;
callback: () => unknown;
Expand Down

0 comments on commit eba9ca8

Please sign in to comment.