Skip to content

chore(docs): replace <b-input> with <b-form-input> #5978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/components/form-input/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,14 @@ chosen, or new values to be entered.

```html
<template>
<b-form-input list="my-list-id"></b-form-input>
<div>
<b-form-input list="my-list-id"></b-form-input>

<datalist id="my-list-id">
<option>Manual Option</option>
<option v-for="size in sizes">{{ size }}</option>
</datalist>
<datalist id="my-list-id">
<option>Manual Option</option>
<option v-for="size in sizes">{{ size }}</option>
</datalist>
</div>
</template>

<script>
Expand Down
18 changes: 10 additions & 8 deletions src/components/form/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ visitors with class `.sr-only`.
<div>
<b-form inline>
<label class="sr-only" for="inline-form-input-name">Name</label>
<b-input
<b-form-input
id="inline-form-input-name"
class="mb-2 mr-sm-2 mb-sm-0"
placeholder="Jane Doe"
></b-input>
></b-form-input>

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

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

```html
<template>
<label for="input-with-list">Input with datalist</label>
<b-form-input list="input-list" id="input-with-list"></b-form-input>
<b-form-datalist id="input-list" :options="options"></b-form-datalist>
<div>
<label for="input-with-list">Input with datalist</label>
<b-form-input list="input-list" id="input-with-list"></b-form-input>
<b-form-datalist id="input-list" :options="options"></b-form-datalist>
</div>
</template>

<script>
Expand Down