aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolay Hvidsten <[email protected]>2018-10-21 17:54:09 +0200
committerXhmikosR <[email protected]>2018-10-21 18:54:09 +0300
commit345f26a6678d7498ddfdd8ee6ce2e1c658f67195 (patch)
treef12b24eb07979236a7b3134eced8c2fd86a38e2a
parent1f1308ba22ee601744f7f71df712bc4a018b8a0a (diff)
downloadbootstrap-345f26a6678d7498ddfdd8ee6ce2e1c658f67195.tar.xz
bootstrap-345f26a6678d7498ddfdd8ee6ce2e1c658f67195.zip
Change erroneous documentation for .flex-fill (#27265)
The current documentation for .flex-fill indicated that the flex items would have equal widths, regardless of content. This update ensures that the documentation reflects the fact that the width of the flex items depends on their actual content.
-rw-r--r--site/docs/4.1/utilities/flex.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/docs/4.1/utilities/flex.md b/site/docs/4.1/utilities/flex.md
index a9a388b18..41e03c53f 100644
--- a/site/docs/4.1/utilities/flex.md
+++ b/site/docs/4.1/utilities/flex.md
@@ -219,11 +219,11 @@ Responsive variations also exist for `align-self`.
## Fill
-Use the `.flex-fill` class on a series of sibling elements to force them into equal widths while taking up all available horizontal space. [Especially useful for equal-width, or justified, navigation]({{ site.baseurl }}/docs/{{ site.docs_version }}/components/navs/#working-with-flex-utilities).
+Use the `.flex-fill` class on a series of sibling elements to force them into widths equal to their content (or equal widths if their content does not surpass their border-boxes) while taking up all available horizontal space.
{% capture example %}
<div class="d-flex bd-highlight">
- <div class="p-2 flex-fill bd-highlight">Flex item</div>
+ <div class="p-2 flex-fill bd-highlight">Flex item with a lot of content</div>
<div class="p-2 flex-fill bd-highlight">Flex item</div>
<div class="p-2 flex-fill bd-highlight">Flex item</div>
</div>