]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix inline labels with a custom select (#26615)
authorAndres Galante <agalante@gmail.com>
Thu, 31 May 2018 07:02:14 +0000 (04:02 -0300)
committerXhmikosR <xhmikosr@gmail.com>
Thu, 31 May 2018 07:02:14 +0000 (10:02 +0300)
Add an sr-only class to the label on inline labels with a custom select

docs/4.1/components/forms.md

index 13890476c6819ec802dfc55f7d2de10767fe09a7..6e98d4a138400dd5e15cba10cd0f7cf8b5ed0835 100644 (file)
@@ -570,7 +570,7 @@ And of course [custom form controls](#custom-forms) are supported.
 <form>
   <div class="form-row align-items-center">
     <div class="col-auto my-1">
-      <label class="mr-sm-2" for="inlineFormCustomSelect">Preference</label>
+      <label class="mr-sm-2 sr-only" for="inlineFormCustomSelect">Preference</label>
       <select class="custom-select mr-sm-2" id="inlineFormCustomSelect">
         <option selected>Choose...</option>
         <option value="1">One</option>