@@ -63,21 +63,21 @@ Add the relative form sizing classes to the `.input-group` itself and contents w
63
63
<div class =" input-group-prepend " >
64
64
<span class="input-group-text" id="inputGroup-sizing-sm">Small</span>
65
65
</div >
66
- <input type =" text " class =" form-control " aria-label =" Small " aria-describedby =" inputGroup-sizing-sm " >
66
+ <input type =" text " class =" form-control " aria-label =" Sizing example input " aria-describedby =" inputGroup-sizing-sm " >
67
67
</div >
68
68
69
69
<div class =" input-group mb-3 " >
70
70
<div class =" input-group-prepend " >
71
71
<span class="input-group-text" id="inputGroup-sizing-default">Default</span>
72
72
</div >
73
- <input type =" text " class =" form-control " aria-label =" Default " aria-describedby =" inputGroup-sizing-default " >
73
+ <input type =" text " class =" form-control " aria-label =" Sizing example input " aria-describedby =" inputGroup-sizing-default " >
74
74
</div >
75
75
76
76
<div class =" input-group input-group-lg " >
77
77
<div class =" input-group-prepend " >
78
78
<span class="input-group-text" id="inputGroup-sizing-lg">Large</span>
79
79
</div >
80
- <input type =" text " class =" form-control " aria-label =" Large " aria-describedby =" inputGroup-sizing-sm " >
80
+ <input type =" text " class =" form-control " aria-label =" Sizing example input " aria-describedby =" inputGroup-sizing-lg " >
81
81
</div >
82
82
{% endcapture %}
83
83
{% include example.html content=example %}
@@ -99,7 +99,7 @@ Place any checkbox or radio option within an input group's addon instead of text
99
99
<div class =" input-group " >
100
100
<div class =" input-group-prepend " >
101
101
<div class="input-group-text">
102
- <input type="radio" aria-label="Radio button for following text input">
102
+ <input type="radio" aria-label="Radio button for following text input">
103
103
</div>
104
104
</div >
105
105
<input type =" text " class =" form-control " aria-label =" Text input with radio button " >
@@ -114,10 +114,10 @@ While multiple `<input>`s are supported visually, validation styles are only ava
114
114
{% capture example %}
115
115
<div class =" input-group " >
116
116
<div class =" input-group-prepend " >
117
- <span class="input-group-text" id="" >First and last name</span>
117
+ <span class="input-group-text">First and last name</span>
118
118
</div >
119
- <input type =" text " class =" form-control " >
120
- <input type =" text " class =" form-control " >
119
+ <input type =" text " aria-label = " First name " class =" form-control " >
120
+ <input type =" text " aria-label = " Last name " class =" form-control " >
121
121
</div >
122
122
{% endcapture %}
123
123
{% include example.html content=example %}
@@ -132,11 +132,11 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
132
132
<span class="input-group-text">$</span>
133
133
<span class="input-group-text">0.00</span>
134
134
</div >
135
- <input type =" text " class =" form-control " aria-label =" Amount (to the nearest dollar )" >
135
+ <input type =" text " class =" form-control " aria-label =" Dollar amount (with dot and two decimal places )" >
136
136
</div >
137
137
138
138
<div class =" input-group " >
139
- <input type =" text " class =" form-control " aria-label =" Amount (to the nearest dollar )" >
139
+ <input type =" text " class =" form-control " aria-label =" Dollar amount (with dot and two decimal places )" >
140
140
<div class =" input-group-append " >
141
141
<span class="input-group-text">$</span>
142
142
<span class="input-group-text">0.00</span>
@@ -150,29 +150,29 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
150
150
{% capture example %}
151
151
<div class =" input-group mb-3 " >
152
152
<div class =" input-group-prepend " >
153
- <button class="btn btn-outline-secondary" type="button">Button</button>
153
+ <button class="btn btn-outline-secondary" type="button" id="button-addon1" >Button</button>
154
154
</div >
155
- <input type =" text " class =" form-control " placeholder =" " aria-label =" " aria-describedby =" basic -addon1" >
155
+ <input type =" text " class =" form-control " placeholder =" " aria-label =" Example text with button addon " aria-describedby =" button -addon1" >
156
156
</div >
157
157
158
158
<div class =" input-group mb-3 " >
159
- <input type =" text " class =" form-control " placeholder =" Recipient's username " aria-label =" Recipient's username " aria-describedby =" basic -addon2" >
159
+ <input type =" text " class =" form-control " placeholder =" Recipient's username " aria-label =" Recipient's username " aria-describedby =" button -addon2" >
160
160
<div class =" input-group-append " >
161
- <button class="btn btn-outline-secondary" type="button">Button</button>
161
+ <button class="btn btn-outline-secondary" type="button" id="button-addon2" >Button</button>
162
162
</div >
163
163
</div >
164
164
165
165
<div class =" input-group mb-3 " >
166
- <div class =" input-group-prepend " >
166
+ <div class =" input-group-prepend " id = " button-addon3 " >
167
167
<button class="btn btn-outline-secondary" type="button">Button</button>
168
168
<button class="btn btn-outline-secondary" type="button">Button</button>
169
169
</div >
170
- <input type =" text " class =" form-control " placeholder =" " aria-label =" " aria-describedby =" basic-addon1 " >
170
+ <input type =" text " class =" form-control " placeholder =" " aria-label =" Example text with two button addons " aria-describedby =" button-addon3 " >
171
171
</div >
172
172
173
173
<div class =" input-group " >
174
- <input type =" text " class =" form-control " placeholder =" Recipient's username " aria-label =" Recipient's username " aria-describedby =" basic-addon2 " >
175
- <div class =" input-group-append " >
174
+ <input type =" text " class =" form-control " placeholder =" Recipient's username " aria-label =" Recipient's username with two button addons " aria-describedby =" button-addon4 " >
175
+ <div class =" input-group-append " id = " button-addon4 " >
176
176
<button class="btn btn-outline-secondary" type="button">Button</button>
177
177
<button class="btn btn-outline-secondary" type="button">Button</button>
178
178
</div >
@@ -287,7 +287,7 @@ Input groups include support for custom selects and custom file inputs. Browser
287
287
<div class =" input-group-prepend " >
288
288
<button class="btn btn-outline-secondary" type="button">Button</button>
289
289
</div >
290
- <select class =" custom-select " id =" inputGroupSelect03 " >
290
+ <select class =" custom-select " id =" inputGroupSelect03 " aria-label = " Example select with button addon " >
291
291
<option selected>Choose...</option>
292
292
<option value="1">One</option>
293
293
<option value="2">Two</option>
@@ -296,7 +296,7 @@ Input groups include support for custom selects and custom file inputs. Browser
296
296
</div >
297
297
298
298
<div class =" input-group " >
299
- <select class =" custom-select " id =" inputGroupSelect04 " >
299
+ <select class =" custom-select " id =" inputGroupSelect04 " aria-label = " Example select with button addon " >
300
300
<option selected>Choose...</option>
301
301
<option value="1">One</option>
302
302
<option value="2">Two</option>
@@ -314,41 +314,41 @@ Input groups include support for custom selects and custom file inputs. Browser
314
314
{% capture example %}
315
315
<div class =" input-group mb-3 " >
316
316
<div class =" input-group-prepend " >
317
- <span class="input-group-text">Upload</span>
317
+ <span class="input-group-text" id="inputGroupFileAddon01" >Upload</span>
318
318
</div >
319
319
<div class =" custom-file " >
320
- <input type="file" class="custom-file-input" id="inputGroupFile01">
320
+ <input type="file" class="custom-file-input" id="inputGroupFile01" aria-describedby="inputGroupFileAddon01" >
321
321
<label class="custom-file-label" for="inputGroupFile01">Choose file</label>
322
322
</div >
323
323
</div >
324
324
325
325
<div class =" input-group mb-3 " >
326
326
<div class =" custom-file " >
327
327
<input type="file" class="custom-file-input" id="inputGroupFile02">
328
- <label class="custom-file-label" for="inputGroupFile02">Choose file</label>
328
+ <label class="custom-file-label" for="inputGroupFile02" aria-describedby="inputGroupFileAddon02" >Choose file</label>
329
329
</div >
330
330
<div class =" input-group-append " >
331
- <span class="input-group-text" id="">Upload</span>
331
+ <span class="input-group-text" id="inputGroupFileAddon02 ">Upload</span>
332
332
</div >
333
333
</div >
334
334
335
335
<div class =" input-group mb-3 " >
336
336
<div class =" input-group-prepend " >
337
- <button class="btn btn-outline-secondary" type="button">Button</button>
337
+ <button class="btn btn-outline-secondary" type="button" id="inputGroupFileAddon03" >Button</button>
338
338
</div >
339
339
<div class =" custom-file " >
340
- <input type="file" class="custom-file-input" id="inputGroupFile03">
340
+ <input type="file" class="custom-file-input" id="inputGroupFile03" aria-describedby="inputGroupFileAddon03" >
341
341
<label class="custom-file-label" for="inputGroupFile03">Choose file</label>
342
342
</div >
343
343
</div >
344
344
345
345
<div class =" input-group " >
346
346
<div class =" custom-file " >
347
- <input type="file" class="custom-file-input" id="inputGroupFile04">
347
+ <input type="file" class="custom-file-input" id="inputGroupFile04" aria-describedby="inputGroupFileAddon04" >
348
348
<label class="custom-file-label" for="inputGroupFile04">Choose file</label>
349
349
</div >
350
350
<div class =" input-group-append " >
351
- <button class="btn btn-outline-secondary" type="button">Button</button>
351
+ <button class="btn btn-outline-secondary" type="button" id="inputGroupFileAddon04" >Button</button>
352
352
</div >
353
353
</div >
354
354
{% endcapture %}
0 commit comments