Skip to content

Commit

Permalink
fix(button): add action icon-button
Browse files Browse the repository at this point in the history
  • Loading branch information
ariellalgilmore committed Jan 8, 2024
1 parent b30a311 commit d796ac2
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ const controls = {
description: 'Optional prop to specify the type of the Button',
options: types,
},
onClick: {
table: {
disable: true,
},
},
};

export const Default = {
Expand Down Expand Up @@ -273,6 +278,7 @@ export const IconButton = {
tooltipAlignment,
tooltipPosition,
type,
onClick,
}) => html` <cds-button
button-class-name="${buttonClassName}"
danger-description="${dangerDescription}"
Expand All @@ -286,7 +292,8 @@ export const IconButton = {
tooltip-alignment="${tooltipAlignment}"
tooltip-position="${tooltipPosition}"
tooltip-text="Icon Description"
type="${type}">
type="${type}"
@click="${onClick}">
${Add16({ slot: 'icon' })}
</cds-button>`,
};
Expand Down Expand Up @@ -412,6 +419,7 @@ export const Tertiary = {
const meta = {
title: 'Components/Button',
parameters: {
actions: { argTypesRegex: '^on.*' },
docs: {
page: storyDocs,
},
Expand Down

0 comments on commit d796ac2

Please sign in to comment.