Skip to content

Commit

Permalink
Fix #5872: hideOverlaysOnDocumentScrolling docs (#5873)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Feb 1, 2024
1 parent 60097a5 commit 539f094
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/doc/configuration/hideoverlaysdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ export default function MyApp({ Component }) {
</PrimeReactProvider>
);
}
//_app.css
body {
margin: 0px;
min-height: 100%;
overflow-x: hidden;
overflow-y: auto;
}
`
};

Expand All @@ -27,7 +35,7 @@ export default function MyApp({ Component }) {
<DocSectionText {...props}>
<p>
Define behavior if the browser window is scrolled while displaying an overlay panel like a Dropdown or Calendar. Depending on your organization's accessibility needs some prefer panels to be closed on scrolling and some prefer the
overlay follow the scroll. Default value is false.
overlay follow the scroll. Default value is false. IMPORTANT: Your <i>document.body</i> must have <i>overflow</i> CSS on this to work properly.
</p>
</DocSectionText>
<DocSectionCode code={code} hideToggleCode import hideCodeSandbox hideStackBlitz />
Expand Down

0 comments on commit 539f094

Please sign in to comment.