From 5bd7aa365cc268ec52fbdf4e139242a0c9769939 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Mon, 9 Nov 2020 05:18:17 +0000 Subject: [Docs] Changes to navbar documentation/explanation (#32090) * Expand "external content" section for navbar - rephrase the intro to make a bit more sense - add note about dangers of focus/reading order problems * Remove pointless intro sentence * Small wording changes/additions/fixes --- site/content/docs/5.0/components/navbar.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/site/content/docs/5.0/components/navbar.md b/site/content/docs/5.0/components/navbar.md index 2bc21533bd..58629fd664 100644 --- a/site/content/docs/5.0/components/navbar.md +++ b/site/content/docs/5.0/components/navbar.md @@ -21,8 +21,6 @@ Here's what you need to know before getting started with the navbar: {{< partial "callout-info-prefersreducedmotion.md" >}} {{< /callout >}} -Read on for an example and list of supported sub-components. - ## Supported content Navbars come with built-in support for a handful of sub-components. Choose from the following as needed: @@ -79,7 +77,7 @@ This example uses [color]({{< docsref "/utilities/colors" >}}) (`bg-light`) and ### Brand -The `.navbar-brand` can be applied to most elements, but an anchor works best as some elements might require utility classes or custom styles. +The `.navbar-brand` can be applied to most elements, but an anchor works best, as some elements might require utility classes or custom styles. {{< example >}} @@ -178,7 +176,7 @@ And because we use classes for our navs, you can avoid the list-based approach e {{< /example >}} -You may also utilize dropdowns in your navbar nav. Dropdown menus require a wrapping element for positioning, so be sure to use separate and nested elements for `.nav-item` and `.nav-link` as shown below. +You can also use dropdowns in your navbar. Dropdown menus require a wrapping element for positioning, so be sure to use separate and nested elements for `.nav-item` and `.nav-link` as shown below. {{< example >}} {{< /example >}} -Immediate children elements in `.navbar` use flex layout and will default to `justify-content: space-between`. Use additional [flex utilities]({{< docsref "/utilities/flex" >}}) as needed to adjust this behavior. +Immediate child elements of `.navbar` use flex layout and will default to `justify-content: space-between`. Use additional [flex utilities]({{< docsref "/utilities/flex" >}}) as needed to adjust this behavior. {{< example >}} {{< /example >}} -Input groups work, too. If your navbar is an entire form, or mostly form, you can use the `
` element as the container and save some HTML. Applies to the option above and below this copy. +Input groups work, too. If your navbar is an entire form, or mostly a form, you can use the `` element as the container and save some HTML. {{< example >}}