11import { Drawer , DrawerContent , DrawerContentBody , DrawerProps } from '../Drawer' ;
22import styles from '@patternfly/react-styles/css/components/Compass/compass' ;
33import { css } from '@patternfly/react-styles' ;
4+ import { IS_INERT } from '../../helpers/inert' ;
5+
46export interface CompassProps extends React . HTMLProps < HTMLDivElement > {
57 /** Additional classes added to the Compass. */
68 className ?: string ;
@@ -76,15 +78,15 @@ export const Compass: React.FunctionComponent<CompassProps> = ({
7678 { header && (
7779 < div
7880 className = { css ( styles . compassHeader , isHeaderExpanded && 'pf-m-expanded' ) }
79- { ...( ! isHeaderExpanded && { inert : 'true' } ) }
81+ { ...( ! isHeaderExpanded && { inert : IS_INERT } ) }
8082 >
8183 { header }
8284 </ div >
8385 ) }
8486 { sidebarStart && (
8587 < div
8688 className = { css ( styles . compassSidebar , styles . modifiers . start , isSidebarStartExpanded && 'pf-m-expanded' ) }
87- { ...( ! isSidebarStartExpanded && { inert : 'true' } ) }
89+ { ...( ! isSidebarStartExpanded && { inert : IS_INERT } ) }
8890 >
8991 { sidebarStart }
9092 </ div >
@@ -93,15 +95,15 @@ export const Compass: React.FunctionComponent<CompassProps> = ({
9395 { sidebarEnd && (
9496 < div
9597 className = { css ( styles . compassSidebar , styles . modifiers . end , isSidebarEndExpanded && 'pf-m-expanded' ) }
96- { ...( ! isSidebarEndExpanded && { inert : 'true' } ) }
98+ { ...( ! isSidebarEndExpanded && { inert : IS_INERT } ) }
9799 >
98100 { sidebarEnd }
99101 </ div >
100102 ) }
101103 { footer && (
102104 < div
103105 className = { css ( styles . compassFooter , isFooterExpanded && 'pf-m-expanded' ) }
104- { ...( ! isFooterExpanded && { inert : 'true' } ) }
106+ { ...( ! isFooterExpanded && { inert : IS_INERT } ) }
105107 >
106108 { footer }
107109 </ div >
0 commit comments