]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
simplify some button docs copy
authorMark Otto <markdotto@gmail.com>
Mon, 10 Aug 2015 23:11:44 +0000 (16:11 -0700)
committerMark Otto <markdotto@gmail.com>
Mon, 10 Aug 2015 23:11:44 +0000 (16:11 -0700)
docs/components/buttons.md

index 6e25ebe22e6acb9147424ac80cf52e49ae3810d6..0dbb7a256e4f640e0ddf6ec0cb8fee0fe409a4fe 100644 (file)
@@ -4,7 +4,7 @@ title: Buttons
 group: components
 ---
 
-Buttons are used to execute actions in forms, dialogs, and more. Use any of the available button classes to quickly create a styled button.
+Use Bootstrap's custom button styles for actions in forms, dialogs, and more. Includes support for a handful of contextual variations, sizes, states, and more.
 
 ## Contents
 
@@ -104,7 +104,11 @@ Buttons will appear pressed (with a darker background, darker border, and inset
 
 ## Disabled state
 
-Make buttons look unclickable by adding the `disabled` boolean attribute to any `<button>` element.
+Make buttons look inactive by adding the `disabled` boolean attribute to any `<button>` element.
+
+{% callout info %}
+**Heads up!** IE9 and below render disabled buttons with gray, shadowed text that we can't override.
+{% endcallout %}
 
 {% example html %}
 <button type="button" class="btn btn-lg btn-primary" disabled>Primary button</button>
@@ -118,24 +122,12 @@ As `<a>` elements don't support the `disabled` attribute, you must add the `.dis
 <a href="#" class="btn btn-secondary btn-lg disabled" role="button">Link</a>
 {% endexample %}
 
-{% callout warning %}
-#### Cross-browser compatibility
-
-If you add the `disabled` attribute to a `<button>`, Internet Explorer 9 and below will render text gray with a nasty text-shadow that we cannot fix.
-{% endcallout %}
-
 {% callout warning %}
 #### Link functionality caveat
 
 This class uses `pointer-events: none` to try to disable the link functionality of `<a>`s, but that CSS property is not yet standardized and isn't fully supported in Opera 18 and below, or in Internet Explorer 11\. In addition, even in browsers that do support `pointer-events: none`, keyboard navigation remains unaffected, meaning that sighted keyboard users and users of assistive technologies will still be able to activate these links. So to be safe, use custom JavaScript to disable such links.
 {% endcallout %}
 
-{% callout warning %}
-#### Context-specific usage
-
-While button classes can be used on `<a>` and `<button>` elements, only `<button>` elements are supported within our nav and navbar components.
-{% endcallout %}
-
 ## Button plugin
 
 Do more with buttons. Control button states or create groups of buttons for more components like toolbars.