diff options
author | Kyle Tsang <6854874+kyletsang@users.noreply.github.com> | 2021-01-20 13:12:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 13:12:35 +0300 |
commit | c6d6160a7c2203fbe620b6e4a660f72c40b2efd3 (patch) | |
tree | fcea27f0be2aabfa90742f1d3457a5c7494d9d4f /site/content | |
parent | 412185088364ca65ef3f6ff7764f31b87c964176 (diff) |
docs: Fix `navbar-nav-scroll` description (#32846)
Diffstat (limited to 'site/content')
-rw-r--r-- | site/content/docs/5.0/components/navbar.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/5.0/components/navbar.md b/site/content/docs/5.0/components/navbar.md index 72a61581b8..3591b343cd 100644 --- a/site/content/docs/5.0/components/navbar.md +++ b/site/content/docs/5.0/components/navbar.md @@ -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. |