Skip to content

Commit

Permalink
fix(remove-modal): primary button danger description (#5545)
Browse files Browse the repository at this point in the history
  • Loading branch information
ariellalgilmore committed Jun 24, 2024
1 parent 6505e1c commit 85716f9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/ibm-products/src/components/RemoveModal/RemoveModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ interface RemoveModalProps extends React.ComponentProps<typeof ComposedModal> {
* Specify the text for the primary button
*/
primaryButtonText?: string;

/**
* Specify the danger description on the primary button
*/
primaryDangerDescription?: string;

/**
* The name of the resource being acted upon
*/
Expand Down Expand Up @@ -129,6 +135,7 @@ export let RemoveModal = forwardRef(
preventCloseOnClickOutside,
primaryButtonDisabled,
primaryButtonText,
primaryDangerDescription,
resourceName,
secondaryButtonText,
textConfirmation,
Expand Down Expand Up @@ -211,6 +218,7 @@ export let RemoveModal = forwardRef(
<Button
type="submit"
kind="danger"
dangerDescription={primaryDangerDescription}
onClick={onRequestSubmit}
disabled={primaryButtonStatus}
>
Expand Down Expand Up @@ -282,6 +290,12 @@ RemoveModal.propTypes = {
* Specify the text for the primary button
*/
primaryButtonText: PropTypes.string,

/**
* Specify the danger description on the primary button
*/
primaryDangerDescription: PropTypes.string,

/**
* The name of the resource being acted upon
*/
Expand Down

0 comments on commit 85716f9

Please sign in to comment.