Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 189babe

Browse files
committed
docs(cb-a11y): Building examples - Form controls
1 parent aae202b commit 189babe

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

public/docs/_examples/cb-a11y/ts/app/a11y-form-controls.component.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ <h3>Implicit labeling</h3>
99

1010
<a11y-input>Type something:</a11y-input>
1111

12-
<div class="form-group">
13-
<label>Test
14-
<textarea class="form-control"></textarea>
15-
</label>
16-
</div>
12+
<a11y-textarea>Type some text:</a11y-textarea>
1713

1814
<a11y-checkboxes [checkboxModel]="checkBoxes" [checkboxName]="'likes'">
1915
What do you like most about Angular 2?

public/docs/_examples/cb-a11y/ts/app/a11y-form-controls.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {A11yCheckboxes} from "./a11y-checkboxes.component";
66
import {A11yHelper} from "./services/a11y-helper.service";
77
import {A11yRadiobuttons} from "./a11y-radiobuttons.component";
88
import {A11ySelect} from "./a11y-select.component";
9+
import {A11yTextarea} from "./a11y-textarea.component";
910

1011
@Component({
1112
selector: 'a11y-form-controls',
@@ -17,7 +18,8 @@ import {A11ySelect} from "./a11y-select.component";
1718
A11yInputExplicit,
1819
A11yCheckboxes,
1920
A11yRadiobuttons,
20-
A11ySelect
21+
A11ySelect,
22+
A11yTextarea
2123
]
2224
})
2325
export class A11yFormControls implements OnInit {

public/docs/_examples/cb-a11y/ts/app/a11y-input.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="form-group col-xs-12">
1+
<div class="form-group ">
22
<!-- #docregion cb-a11y-form-controls-input -->
33
<label>
44
<ng-content></ng-content>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="form-group">
2+
<label><ng-content></ng-content>
3+
<textarea class="form-control"></textarea>
4+
</label>
5+
</div>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import {Component} from "angular2/core";
2+
3+
@Component({
4+
selector: 'a11y-textarea',
5+
templateUrl: './app/a11y-textarea.component.html'
6+
})
7+
export class A11yTextarea {
8+
9+
}

0 commit comments

Comments
 (0)