aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2019-10-25 11:37:52 +0200
committerXhmikosR <[email protected]>2019-10-25 12:37:52 +0300
commit9ee9b8a1e8f6b2c9d1cbec6cf5c04ac5b8a2b378 (patch)
treeff88a053413dbf15f78e50464d7cd56656822707 /site/content/docs
parentb3dfcdc7ed066469074e96d9ca80b0684d185d82 (diff)
downloadbootstrap-9ee9b8a1e8f6b2c9d1cbec6cf5c04ac5b8a2b378.tar.xz
bootstrap-9ee9b8a1e8f6b2c9d1cbec6cf5c04ac5b8a2b378.zip
Add configurable button text wrapping (#29554)
Diffstat (limited to 'site/content/docs')
-rw-r--r--site/content/docs/4.3/components/buttons.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/site/content/docs/4.3/components/buttons.md b/site/content/docs/4.3/components/buttons.md
index 991dec745..73cb83803 100644
--- a/site/content/docs/4.3/components/buttons.md
+++ b/site/content/docs/4.3/components/buttons.md
@@ -24,6 +24,10 @@ Bootstrap includes several predefined button styles, each serving its own semant
{{< partial "callout-warning-color-assistive-technologies.md" >}}
{{< /callout >}}
+## Disable text wrapping
+
+If you don't want the button text to wrap, you can add the `.text-nowrap` class to the button. In Sass, you can set `$btn-white-space: nowrap` to disable text wrapping for each button.
+
## Button tags
The `.btn` classes are designed to be used with the `<button>` element. However, you can also use these classes on `<a>` or `<input>` elements (though some browsers may apply a slightly different rendering).