File tree Expand file tree Collapse file tree
packages/react-core/src/demos Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ export const CompassDockDemo: React.FunctionComponent = () => {
221221
222222 // Docked masthead - vertical navigation sidebar
223223 const dockContent = (
224- < CompassDockMain >
224+ < CompassDockMain { ... ( isMobile && ! isDockExpanded && { inert : '' } ) } >
225225 < Masthead display = { { default : undefined } } id = "docked-masthead" variant = "docked" >
226226 < MastheadMain >
227227 < MastheadToggle >
Original file line number Diff line number Diff line change @@ -240,7 +240,12 @@ export const NavDockedNav: React.FunctionComponent = () => {
240240
241241 // Docked masthead - vertical navigation sidebar
242242 const dockedMasthead = (
243- < Masthead display = { { default : undefined } } id = "docked-masthead" variant = "docked" >
243+ < Masthead
244+ { ...( isMobile && ! isDockExpanded && { inert : '' } ) }
245+ display = { { default : undefined } }
246+ id = "docked-masthead"
247+ variant = "docked"
248+ >
244249 < MastheadMain >
245250 < MastheadToggle >
246251 < Button
You can’t perform that action at this time.
0 commit comments