Skip to content

Commit f2207f9

Browse files
82ampjacobmllr95
andauthored
chore(docs): replace <b-input> with <b-form-input> (#5978)
* chore(docs): replace b-input with b-form-input * chore(docs): fix single root element in example * chore(docs): fix single root element in example Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>
1 parent 8e45ad4 commit f2207f9

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

src/components/form-input/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,14 @@ chosen, or new values to be entered.
439439

440440
```html
441441
<template>
442-
<b-form-input list="my-list-id"></b-form-input>
442+
<div>
443+
<b-form-input list="my-list-id"></b-form-input>
443444

444-
<datalist id="my-list-id">
445-
<option>Manual Option</option>
446-
<option v-for="size in sizes">{{ size }}</option>
447-
</datalist>
445+
<datalist id="my-list-id">
446+
<option>Manual Option</option>
447+
<option v-for="size in sizes">{{ size }}</option>
448+
</datalist>
449+
</div>
448450
</template>
449451

450452
<script>

src/components/form/README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ visitors with class `.sr-only`.
125125
<div>
126126
<b-form inline>
127127
<label class="sr-only" for="inline-form-input-name">Name</label>
128-
<b-input
128+
<b-form-input
129129
id="inline-form-input-name"
130130
class="mb-2 mr-sm-2 mb-sm-0"
131131
placeholder="Jane Doe"
132-
></b-input>
132+
></b-form-input>
133133

134134
<label class="sr-only" for="inline-form-input-username">Username</label>
135135
<b-input-group prepend="@" class="mb-2 mr-sm-2 mb-sm-0">
136-
<b-input id="inline-form-input-username" placeholder="Username"></b-input>
136+
<b-form-input id="inline-form-input-username" placeholder="Username"></b-form-input>
137137
</b-input-group>
138138

139139
<b-form-checkbox class="mb-2 mr-sm-2 mb-sm-0">Remember me</b-form-checkbox>
@@ -222,7 +222,7 @@ will announce this help text when the user focuses or enters the control.
222222
<div>
223223
<b-form @submit.stop.prevent>
224224
<label for="text-password">Password</label>
225-
<b-input type="password" id="text-password" aria-describedby="password-help-block"></b-input>
225+
<b-form-input type="password" id="text-password" aria-describedby="password-help-block"></b-form-input>
226226
<b-form-text id="password-help-block">
227227
Your password must be 8-20 characters long, contain letters and numbers, and must not
228228
contain spaces, special characters, or emoji.
@@ -261,7 +261,7 @@ or the `force-show` prop to display the feedback.
261261
<div>
262262
<b-form @submit.stop.prevent>
263263
<label for="feedback-user">User ID</label>
264-
<b-input v-model="userId" :state="validation" id="feedback-user"></b-input>
264+
<b-form-input v-model="userId" :state="validation" id="feedback-user"></b-form-input>
265265
<b-form-invalid-feedback :state="validation">
266266
Your user ID must be 5-12 characters long.
267267
</b-form-invalid-feedback>
@@ -302,9 +302,11 @@ any `<option>` elements generated from the `options` prop.
302302

303303
```html
304304
<template>
305-
<label for="input-with-list">Input with datalist</label>
306-
<b-form-input list="input-list" id="input-with-list"></b-form-input>
307-
<b-form-datalist id="input-list" :options="options"></b-form-datalist>
305+
<div>
306+
<label for="input-with-list">Input with datalist</label>
307+
<b-form-input list="input-list" id="input-with-list"></b-form-input>
308+
<b-form-datalist id="input-list" :options="options"></b-form-datalist>
309+
</div>
308310
</template>
309311

310312
<script>

0 commit comments

Comments
 (0)