]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove sr-only from components/dropdowns example
authorPatrick H. Lauke <redux@splintered.co.uk>
Tue, 29 Apr 2014 19:52:35 +0000 (20:52 +0100)
committerPatrick H. Lauke <redux@splintered.co.uk>
Tue, 29 Apr 2014 19:52:35 +0000 (20:52 +0100)
Assuming sr-only is used in the actual live code so that the menu can be
shown open already ... but having sr-only in the highlighted example
code itself is confusing/misleading.

Also, change the text for the button from "Dropdown" to "Dropdown
trigger" for clarity (and it then matches
http://getbootstrap.com/javascript/#dropdowns)

docs/_includes/components/dropdowns.html

index 6e44c45ba4c1ae8591ff99216fdd1fe853d59dc6..f4494b8a3db62f5c6e896118386cb1b5643a5d44 100644 (file)
@@ -8,7 +8,7 @@
   <div class="bs-example">
     <div class="dropdown clearfix">
       <button class="btn dropdown-toggle sr-only" type="button" id="dropdownMenu1" data-toggle="dropdown">
-        Dropdown
+        Dropdown trigger
         <span class="caret"></span>
       </button>
       <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
@@ -22,8 +22,8 @@
   </div><!-- /example -->
 {% highlight html %}
 <div class="dropdown">
-  <button class="btn dropdown-toggle sr-only" type="button" id="dropdownMenu1" data-toggle="dropdown">
-    Dropdown
+  <button class="btn dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
+    Dropdown trigger
     <span class="caret"></span>
   </button>
   <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">