Skip to content

Commit

Permalink
fix(Tearsheet): update portalTarget type (carbon-design-system#5899)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgallo authored Aug 20, 2024
1 parent 3582d4e commit d7aa99e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ interface APIKeyModalCommonProps {
/**
* The DOM node the tearsheet should be rendered within. Defaults to document.body.
*/
portalTarget: ReactNode;
portalTarget?: ReactNode;
/**
* label text that's displayed when hovering over visibility toggler to show key
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/ibm-products/src/components/Tearsheet/Tearsheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface TearsheetProps extends PropsWithChildren {
*
* See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
*/
actions: ButtonProps[];
actions: ButtonProps<'button'>[];

/**
* The aria-label for the tearsheet, which is optional.
Expand Down Expand Up @@ -133,7 +133,7 @@ export interface TearsheetProps extends PropsWithChildren {
/**
* The DOM element that the tearsheet should be rendered within. Defaults to document.body.
*/
portalTarget: ReactNode;
portalTarget?: ReactNode;

/**
* Specify a CSS selector that matches the DOM element that should be
Expand Down

0 comments on commit d7aa99e

Please sign in to comment.