]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs: Fix `navbar-nav-scroll` description (#32846)
authorKyle Tsang <6854874+kyletsang@users.noreply.github.com>
Wed, 20 Jan 2021 10:12:35 +0000 (02:12 -0800)
committerGitHub <noreply@github.com>
Wed, 20 Jan 2021 10:12:35 +0000 (12:12 +0200)
site/content/docs/5.0/components/navbar.md

index 72a61581b88aa70a82e9c40a0e9102cb5493fd86..3591b343cd71ee2b1ff42ed973ff3f5ab51075d0 100644 (file)
@@ -480,7 +480,7 @@ Also note that **`.sticky-top` uses `position: sticky`, which [isn't fully suppo
 
 ## Scrolling
 
-Add `.navbar-nav-scroll` to a `.navbar-collapse` (or other navbar sub-component) to enable vertical scrolling within the toggleable contents of a collapsed navbar. By default, scrolling kicks in at `75vh` (or 75% of the viewport height), but you can override that with the local CSS custom property `--bs-navbar-height` or custom styles. At larger viewports when the navbar is expanded, content will appear as it does in a default navbar.
+Add `.navbar-nav-scroll` to a `.navbar-nav` (or other navbar sub-component) to enable vertical scrolling within the toggleable contents of a collapsed navbar. By default, scrolling kicks in at `75vh` (or 75% of the viewport height), but you can override that with the local CSS custom property `--bs-navbar-height` or custom styles. At larger viewports when the navbar is expanded, content will appear as it does in a default navbar.
 
 Please note that this behavior comes with a potential drawback of `overflow`—when setting `overflow-y: auto` (required to scroll the content here), `overflow-x` is the equivalent of `auto`, which will crop some horizontal content.