diff --git a/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx b/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx index d2651622d9a..307a8462405 100644 --- a/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx +++ b/packages/react-core/src/components/Drawer/DrawerPanelContent.tsx @@ -37,13 +37,13 @@ export interface DrawerPanelContentProps extends Omit void; - /** The minimum size of a drawer, in either pixels or percentage. */ + /** The minimum size of a drawer. */ minSize?: string; - /** The starting size of a resizable drawer, in either pixels or percentage. */ + /** The starting size of a drawer. */ defaultSize?: string; - /** The maximum size of a drawer, in either pixels or percentage. */ + /** The maximum size of a drawer. */ maxSize?: string; - /** The increment amount for keyboard drawer resizing, in pixels. */ + /** The increment amount for keyboard drawer resizing. */ increment?: number; /** Aria label for the resizable drawer splitter. */ resizeAriaLabel?: string; diff --git a/packages/react-core/src/components/Page/Page.tsx b/packages/react-core/src/components/Page/Page.tsx index dc1bead60ee..b02f560d65e 100644 --- a/packages/react-core/src/components/Page/Page.tsx +++ b/packages/react-core/src/components/Page/Page.tsx @@ -27,6 +27,12 @@ export interface PageProps extends React.HTMLProps { notificationDrawer?: React.ReactNode; /** Flag indicating Notification drawer in expanded */ isNotificationDrawerExpanded?: boolean; + /** Sets default drawer size */ + drawerDefaultSize?: string; + /** Sets the minimum drawer size*/ + drawerMinSize?: string; + /** Sets the maximum drawer size */ + drawerMaxSize?: string; /** Flag indicating if breadcrumb width should be limited */ isBreadcrumbWidthLimited?: boolean; /** Callback when notification drawer panel is finished expanding. */ @@ -219,6 +225,9 @@ class Page extends React.Component { notificationDrawer, isNotificationDrawerExpanded, onNotificationDrawerExpand, + drawerDefaultSize, + drawerMinSize, + drawerMaxSize, isTertiaryNavWidthLimited, skipToContent, role, @@ -310,7 +319,11 @@ class Page extends React.Component { ); - const panelContent = {notificationDrawer}; + const panelContent = ( + + {notificationDrawer} + + ); return (