mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-24 22:14:43 +00:00
Fix inline labels with a custom select (#26615)
Add an sr-only class to the label on inline labels with a custom select
This commit is contained in:
parent
89a47c98b9
commit
e163d18b12
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue