Skip to content

Commit a18ea9e

Browse files
committed
fix(Compass): wrap in DrawerContentBody when drawer is passed
1 parent 3fe4262 commit a18ea9e

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

packages/react-core/src/components/Compass/Compass.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Drawer, DrawerContent, DrawerProps } from '../Drawer';
1+
import { Drawer, DrawerContent, DrawerContentBody, DrawerProps } from '../Drawer';
22
import styles from '@patternfly/react-styles/css/components/Compass/compass';
33
import { css } from '@patternfly/react-styles';
44

@@ -96,7 +96,9 @@ export const Compass: React.FunctionComponent<CompassProps> = ({
9696
if (hasDrawer) {
9797
return (
9898
<Drawer {...drawerProps}>
99-
<DrawerContent panelContent={drawerContent}>{compassContent}</DrawerContent>
99+
<DrawerContent panelContent={drawerContent}>
100+
<DrawerContentBody>{compassContent}</DrawerContentBody>
101+
</DrawerContent>
100102
</Drawer>
101103
);
102104
}

packages/react-core/src/components/Compass/examples/Compass.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ id: Compass
33
cssPrefix: pf-v6-c-compass
44
section: components
55
beta: true
6-
propComponents: ['Compass', 'CompassHeader', 'CompassContent', 'CompassHero', 'CompassMainHeader', 'CompassPanel']
6+
propComponents:
7+
[
8+
'Compass',
9+
'CompassHeader',
10+
'CompassContent',
11+
'CompassHero',
12+
'CompassMainHeader',
13+
'CompassPanel',
14+
'CompassMessageBar'
15+
]
716
---
817

918
import './compass.css';

0 commit comments

Comments
 (0)