mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01: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
@ -570,7 +570,7 @@ And of course [custom form controls](#custom-forms) are supported.
|
|||||||
<form>
|
<form>
|
||||||
<div class="form-row align-items-center">
|
<div class="form-row align-items-center">
|
||||||
<div class="col-auto my-1">
|
<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">
|
<select class="custom-select mr-sm-2" id="inlineFormCustomSelect">
|
||||||
<option selected>Choose...</option>
|
<option selected>Choose...</option>
|
||||||
<option value="1">One</option>
|
<option value="1">One</option>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user