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' ;
45
56import compassBackgroundImageLight from '@patternfly/react-tokens/dist/esm/c_compass_BackgroundImage_light' ;
67import compassBackgroundImageDark from '@patternfly/react-tokens/dist/esm/c_compass_BackgroundImage_dark' ;
@@ -76,15 +77,15 @@ export const Compass: React.FunctionComponent<CompassProps> = ({
7677 { header && (
7778 < div
7879 className = { css ( styles . compassHeader , isHeaderExpanded && 'pf-m-expanded' ) }
79- { ...( ! isHeaderExpanded && { inert : 'true' } ) }
80+ { ...( ! isHeaderExpanded && { inert : IS_INERT } ) }
8081 >
8182 { header }
8283 </ div >
8384 ) }
8485 { sidebarStart && (
8586 < div
8687 className = { css ( styles . compassSidebar , styles . modifiers . start , isSidebarStartExpanded && 'pf-m-expanded' ) }
87- { ...( ! isSidebarStartExpanded && { inert : 'true' } ) }
88+ { ...( ! isSidebarStartExpanded && { inert : IS_INERT } ) }
8889 >
8990 { sidebarStart }
9091 </ div >
@@ -93,15 +94,15 @@ export const Compass: React.FunctionComponent<CompassProps> = ({
9394 { sidebarEnd && (
9495 < div
9596 className = { css ( styles . compassSidebar , styles . modifiers . end , isSidebarEndExpanded && 'pf-m-expanded' ) }
96- { ...( ! isSidebarEndExpanded && { inert : 'true' } ) }
97+ { ...( ! isSidebarEndExpanded && { inert : IS_INERT } ) }
9798 >
9899 { sidebarEnd }
99100 </ div >
100101 ) }
101102 { footer && (
102103 < div
103104 className = { css ( styles . compassFooter , isFooterExpanded && 'pf-m-expanded' ) }
104- { ...( ! isFooterExpanded && { inert : 'true' } ) }
105+ { ...( ! isFooterExpanded && { inert : IS_INERT } ) }
105106 >
106107 { footer }
107108 </ div >
0 commit comments