Skip to content

Commit

Permalink
fix(SidePanel): replace incorrect prop in conditional prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgallo committed Mar 27, 2024
1 parent fada7db commit 56181b4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/ibm-products/src/components/SidePanel/SidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,22 +188,21 @@ type SidePanelSlideInProps =
*/
slideIn?: false;
/**
* Specify a CSS selector that matches the DOM element that should
* be focused when the side panel opens.
* This is the selector to the element that contains all of the page content that will shrink if the panel is a slide in.
* This prop is required when using the `slideIn` variant of the side panel.
*/
selectorPrimaryFocus?: string;
selectorPageContent?: string;
}
| {
/**
* Determines if this panel slides in
*/
slideIn: true;
/**
* Specify a CSS selector that matches the DOM element that should
* be focused when the side panel opens. Required when for slide in
* panels
* This is the selector to the element that contains all of the page content that will shrink if the panel is a slide in.
* This prop is required when using the `slideIn` variant of the side panel. Required for slideIn panels.
*/
selectorPrimaryFocus: string;
selectorPageContent: string;
};

type SidePanelProps = SidePanelBaseProps & SidePanelSlideInProps;
Expand Down

0 comments on commit 56181b4

Please sign in to comment.