@@ -37,6 +37,12 @@ export interface DrawerPanelContentProps extends Omit<React.HTMLProps<HTMLDivEle
3737 isResizable ?: boolean ;
3838 /** @beta Flag indicating that the drawer panel should disable glass styles. This prop is intended to work with isPill drawers. */
3939 hasNoGlass ?: boolean ;
40+ /** @beta Flag indicating that the drawer panel should use glass styles. */
41+ isGlass ?: boolean ;
42+ /** @beta Flag indicating that the drawer panel should use plain styles. */
43+ isPlain ?: boolean ;
44+ /** @beta Flag indicating that plain styles should be disabled when glass styles are used. */
45+ isNoPlainOnGlass ?: boolean ;
4046 /** Callback for resize end. */
4147 onResize ?: ( event : MouseEvent | TouchEvent | React . KeyboardEvent , width : number , id : string ) => void ;
4248 /** The minimum size of a drawer. */
@@ -56,7 +62,10 @@ export interface DrawerPanelContentProps extends Omit<React.HTMLProps<HTMLDivEle
5662 xl ?: 'width_25' | 'width_33' | 'width_50' | 'width_66' | 'width_75' | 'width_100' ;
5763 '2xl' ?: 'width_25' | 'width_33' | 'width_50' | 'width_66' | 'width_75' | 'width_100' ;
5864 } ;
59- /** Color variant of the background of the drawer panel */
65+ /**
66+ * Color variant of the background of the drawer panel.
67+ * The `no-background`is deprecated; use the `isPlain` prop instead.
68+ */
6069 colorVariant ?: DrawerColorVariant | 'no-background' | 'default' | 'secondary' ;
6170 /** Adds and customizes a focus trap on the drawer panel content. */
6271 focusTrap ?: DrawerPanelFocusTrapObject ;
@@ -71,6 +80,9 @@ export const DrawerPanelContent: React.FunctionComponent<DrawerPanelContentProps
7180 hasNoBorder = false ,
7281 isResizable = false ,
7382 hasNoGlass = false ,
83+ isGlass = false ,
84+ isPlain = false ,
85+ isNoPlainOnGlass = false ,
7486 onResize,
7587 minSize,
7688 defaultSize,
@@ -368,6 +380,9 @@ export const DrawerPanelContent: React.FunctionComponent<DrawerPanelContentProps
368380 styles . drawerPanel ,
369381 isResizable && styles . modifiers . resizable ,
370382 hasNoGlass && 'pf-m-no-glass' ,
383+ isGlass && styles . modifiers . glass ,
384+ isPlain && styles . modifiers . plain ,
385+ isNoPlainOnGlass && styles . modifiers . noPlain ,
371386 hasNoBorder && styles . modifiers . noBorder ,
372387 formatBreakpointMods ( widths , styles ) ,
373388 colorVariant === DrawerColorVariant . noBackground && styles . modifiers . noBackground ,
0 commit comments